Skip to main content

PollRead

Trait PollRead 

Source
pub trait PollRead {
    // Required method
    fn poll_read<'a>(
        &'a mut self,
    ) -> Pin<Box<dyn Send + Future<Output = Result<Option<Vec<u8>>, String>> + 'a>>;
}

Required Methods§

Source

fn poll_read<'a>( &'a mut self, ) -> Pin<Box<dyn Send + Future<Output = Result<Option<Vec<u8>>, String>> + 'a>>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§