pub trait RawHandler {
    type Result: Future<Output = Result<Vec<u8>, Error>>;

    // Required method
    fn handle(
        &mut self,
        caller: &str,
        addr: &str,
        msg: &[u8],
        no_reply: bool
    ) -> Self::Result;
}

Required Associated Types§

source

type Result: Future<Output = Result<Vec<u8>, Error>>

Required Methods§

source

fn handle( &mut self, caller: &str, addr: &str, msg: &[u8], no_reply: bool ) -> Self::Result

Implementors§

source§

impl<Fut> RawHandler for Fn4Handler<Fut>
where Fut: Future<Output = Result<Vec<u8>, Error>>,

§

type Result = Fut

source§

impl<Output: Future<Output = Result<Vec<u8>, Error>>, F: FnMut(&str, &str, &[u8]) -> Output + 'static> RawHandler for F

§

type Result = Output