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

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

Required Associated Types§

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

Required Methods§

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

Object Safety§

This trait is not object safe.

Implementors§

§

impl<T> HandleBytes for Twhere T: Handles,

§

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