Trait tokio::io::Readiness [] [src]

pub trait Readiness {
    fn is_readable(&self) -> bool;
    fn is_writable(&self) -> bool;
}

A Tokio aware source.

For more details, read the module level documentation.

Required Methods

fn is_readable(&self) -> bool

Returns true if the value is currently readable.

fn is_writable(&self) -> bool

Returns true if the value is currently writable.

Implementors