Trait neure::re::Handler

source ·
pub trait Handler<Args> {
    type Out;
    type Error: Into<Error>;

    // Required method
    fn invoke(&mut self, args: Args) -> Result<Self::Out, Self::Error>;
}

Required Associated Types§

Required Methods§

source

fn invoke(&mut self, args: Args) -> Result<Self::Out, Self::Error>

Implementors§

source§

impl<Func, Out> Handler<()> for Funcwhere Func: FnMut() -> Result<Out, Error>,

§

type Out = Out

§

type Error = Error

source§

impl<Func, Out, A> Handler<(A,)> for Funcwhere Func: FnMut(A) -> Result<Out, Error>,

§

type Out = Out

§

type Error = Error

source§

impl<Func, Out, A, B> Handler<(A, B)> for Funcwhere Func: FnMut(A, B) -> Result<Out, Error>,

§

type Out = Out

§

type Error = Error

source§

impl<Func, Out, A, B, C> Handler<(A, B, C)> for Funcwhere Func: FnMut(A, B, C) -> Result<Out, Error>,

§

type Out = Out

§

type Error = Error

source§

impl<Func, Out, A, B, C, D> Handler<(A, B, C, D)> for Funcwhere Func: FnMut(A, B, C, D) -> Result<Out, Error>,

§

type Out = Out

§

type Error = Error

source§

impl<Func, Out, A, B, C, D, E> Handler<(A, B, C, D, E)> for Funcwhere Func: FnMut(A, B, C, D, E) -> Result<Out, Error>,

§

type Out = Out

§

type Error = Error

source§

impl<Func, Out, A, B, C, D, E, F> Handler<(A, B, C, D, E, F)> for Funcwhere Func: FnMut(A, B, C, D, E, F) -> Result<Out, Error>,

§

type Out = Out

§

type Error = Error