pub trait HasCustomBufHandlers: UsesState {
    // Required method
    fn add_custom_buf_handler(
        &mut self,
        handler: Box<dyn FnMut(&mut Self::State, &String, &[u8]) -> Result<CustomBufEventResult, Error>>
    );
}
Expand description

Supports custom buf handlers to handle CustomBuf events.

Required Methods§

source

fn add_custom_buf_handler( &mut self, handler: Box<dyn FnMut(&mut Self::State, &String, &[u8]) -> Result<CustomBufEventResult, Error>> )

Adds a custom buffer handler that will run for each incoming CustomBuf event.

Implementors§