Trait mz_ore::netio::AsyncReady

source ·
pub trait AsyncReady {
    // Required method
    fn ready<'life0, 'async_trait>(
        &'life0 self,
        interest: Interest
    ) -> Pin<Box<dyn Future<Output = Result<Ready>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Available on crate feature network only.
Expand description

Asynchronous IO readiness.

Like tokio::io::AsyncRead or tokio::io::AsyncWrite, but for readiness events.

Required Methods§

source

fn ready<'life0, 'async_trait>( &'life0 self, interest: Interest ) -> Pin<Box<dyn Future<Output = Result<Ready>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Checks for IO readiness.

See TcpStream::ready for details.

Implementations on Foreign Types§

source§

impl AsyncReady for TcpStream

source§

fn ready<'life0, 'async_trait>( &'life0 self, interest: Interest ) -> Pin<Box<dyn Future<Output = Result<Ready>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

impl<S> AsyncReady for SslStream<S>
where S: AsyncReady + Sync,

source§

fn ready<'life0, 'async_trait>( &'life0 self, interest: Interest ) -> Pin<Box<dyn Future<Output = Result<Ready>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§