pub trait HandleBytes {
    type Handle<'a>: Future<Output = Result<Vec<u8>>> + 'a
       where Self: 'a;

    // Required method
    fn handle_bytes<'a>(&'a self, req: &'a [u8]) -> Self::Handle<'a>;
}

Required Associated Types§

source

type Handle<'a>: Future<Output = Result<Vec<u8>>> + 'a where Self: 'a

Required Methods§

source

fn handle_bytes<'a>(&'a self, req: &'a [u8]) -> Self::Handle<'a>

Implementors§

source§

impl<T> HandleBytes for Twhere T: Handles,

§

type Handle<'a> where Self: 'a = impl Future<Output = Result<Vec<u8, Global>, Error<Serde>>> + 'a