Enum bytecodec::io::StreamState
[−]
[src]
pub enum StreamState {
Normal,
Eos,
WouldBlock,
Error,
}State of I/O streams.
Variants
NormalEosWouldBlockError
Methods
impl StreamState[src]
pub fn is_normal(&self) -> bool[src]
Returns true if the state is Normal, otherwise false.
pub fn is_error(&self) -> bool[src]
Returns true if the state is Error, otherwise false.
pub fn is_eos(&self) -> bool[src]
Returns true if the state is Eos, otherwise false.
pub fn would_block(&self) -> bool[src]
Returns true if the state is WouldBlock, otherwise false.
Trait Implementations
impl Debug for StreamState[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Clone for StreamState[src]
fn clone(&self) -> StreamState[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Copy for StreamState[src]
impl PartialEq for StreamState[src]
fn eq(&self, __arg_0: &StreamState) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
This method tests for !=.