Trait ntex_io::Filter

source ·
pub trait Filter: 'static {
    fn query(&self, id: TypeId) -> Option<Box<dyn Any>>;
    fn process_read_buf(
        &self,
        io: &IoRef,
        stack: &mut Stack,
        idx: usize,
        nbytes: usize
    ) -> Result<usize>; fn process_write_buf(
        &self,
        io: &IoRef,
        stack: &mut Stack,
        idx: usize
    ) -> Result<()>; fn shutdown(
        &self,
        io: &IoRef,
        stack: &mut Stack,
        idx: usize
    ) -> Result<Poll<()>>; fn poll_read_ready(&self, cx: &mut Context<'_>) -> Poll<ReadStatus>; fn poll_write_ready(&self, cx: &mut Context<'_>) -> Poll<WriteStatus>; }

Required Methods§

Process write buffer

Gracefully shutdown filter

Check readiness for read operations

Check readiness for write operations

Implementors§