pub trait HandlerActor: HandleBytes {
    // Provided methods
    async fn pre_handle<'a>(
        &'a self,
        req: &'a [u8]
    ) -> Result<Cow<'a, [u8]>, Global> { ... }
    async fn post_handle(
        &self,
        _req: &[u8],
        resp: Vec<u8>
    ) -> Result<Vec<u8>, Global> { ... }
    fn id(&self) -> Option<ActorId> { ... }
}

Provided Methods§

async fn pre_handle<'a>( &'a self, req: &'a [u8] ) -> Result<Cow<'a, [u8]>, Global>

async fn post_handle( &self, _req: &[u8], resp: Vec<u8> ) -> Result<Vec<u8>, Global>

fn id(&self) -> Option<ActorId>

Object Safety§

This trait is not object safe.

Implementors§