fn can_read(&self, event_set: EventSet) -> bool {
        match self.state {
            ArrowStreamState::Ok              => event_set.is_readable(),
            ArrowStreamState::ReaderWantRead  => event_set.is_readable(),
            ArrowStreamState::ReaderWantWrite => event_set.is_writable(),
            _ => false
        }
    }
/// Check if the underlaying socket is ready to read.
Check if the underlaying socket is ready to read.
Check if the underlaying socket is ready to read .
fn can_read(&self, event_set: EventSet) -> bool {
        match self.state {
            ArrowStreamState::Ok              => event_set.is_readable(),
            ArrowStreamState::ReaderWantRead  => event_set.is_readable(),
            ArrowStreamState::ReaderWantWrite => event_set.is_writable(),
            _ => false
        }
    }
fn can_read ( & self , event_set : EventSet ) -> bool { match self . state { ArrowStreamState :: Ok => event_set . is_readable ( ) , ArrowStreamState :: ReaderWantRead => event_set . is_readable ( ) , ArrowStreamState :: ReaderWantWrite => event_set . is_writable ( ) , _ => false } }
Check if the underlaying socket is ready to read.
Check if the underlaying socket is ready to read .
&self
event_set
EventSet
&self
event_set
EventSet