Enum bytecodec::io::StreamState [−][src]
pub enum StreamState {
Normal,
Eos,
WouldBlock,
Error,
}State of I/O streams.
Variants
NormalEosWouldBlockError
Methods
impl StreamState[src]
impl StreamStatepub fn is_normal(self) -> bool[src]
pub fn is_normal(self) -> boolReturns true if the state is Normal, otherwise false.
pub fn is_error(self) -> bool[src]
pub fn is_error(self) -> boolReturns true if the state is Error, otherwise false.
pub fn is_eos(self) -> bool[src]
pub fn is_eos(self) -> boolReturns true if the state is Eos, otherwise false.
pub fn would_block(self) -> bool[src]
pub fn would_block(self) -> boolReturns true if the state is WouldBlock, otherwise false.
Trait Implementations
impl Debug for StreamState[src]
impl Debug for StreamStatefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for StreamState[src]
impl Clone for StreamStatefn clone(&self) -> StreamState[src]
fn clone(&self) -> StreamStateReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Copy for StreamState[src]
impl Copy for StreamStateimpl PartialEq for StreamState[src]
impl PartialEq for StreamStatefn eq(&self, other: &StreamState) -> bool[src]
fn eq(&self, other: &StreamState) -> boolThis 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]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl Eq for StreamState[src]
impl Eq for StreamStateimpl Hash for StreamState[src]
impl Hash for StreamStateAuto Trait Implementations
impl Send for StreamState
impl Send for StreamStateimpl Sync for StreamState
impl Sync for StreamState