Enum bytecodec::io::StreamState [−][src]
pub enum StreamState { Normal, Eos, WouldBlock, Error, }
State of I/O streams.
Variants
Normal
Eos
WouldBlock
Error
Methods
impl StreamState
[src]
impl StreamState
pub fn is_normal(self) -> bool
[src]
pub fn is_normal(self) -> bool
Returns true
if the state is Normal
, otherwise false
.
pub fn is_error(self) -> bool
[src]
pub fn is_error(self) -> bool
Returns true
if the state is Error
, otherwise false
.
pub fn is_eos(self) -> bool
[src]
pub fn is_eos(self) -> bool
Returns true
if the state is Eos
, otherwise false
.
pub fn would_block(self) -> bool
[src]
pub fn would_block(self) -> bool
Returns true
if the state is WouldBlock
, otherwise false
.
Trait Implementations
impl Debug for StreamState
[src]
impl Debug for StreamState
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for StreamState
[src]
impl Clone for StreamState
fn clone(&self) -> StreamState
[src]
fn clone(&self) -> StreamState
Returns 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 StreamState
impl PartialEq for StreamState
[src]
impl PartialEq for StreamState
fn eq(&self, other: &StreamState) -> bool
[src]
fn eq(&self, other: &StreamState) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Eq for StreamState
[src]
impl Eq for StreamState
impl Hash for StreamState
[src]
impl Hash for StreamState
Auto Trait Implementations
impl Send for StreamState
impl Send for StreamState
impl Sync for StreamState
impl Sync for StreamState