Enum loco_protocol::command::client::StreamState
source · pub enum StreamState {
Pending,
Header(RawHeader),
Corrupted,
}
Variants§
Pending
Stream is waiting for packet
Header(RawHeader)
Stream read header and wait for data
Corrupted
Client corrupted and cannot continue
Trait Implementations§
source§impl Clone for StreamState
impl Clone for StreamState
source§fn clone(&self) -> StreamState
fn clone(&self) -> StreamState
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for StreamState
impl Debug for StreamState
source§impl PartialEq for StreamState
impl PartialEq for StreamState
source§fn eq(&self, other: &StreamState) -> bool
fn eq(&self, other: &StreamState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for StreamState
Auto Trait Implementations§
impl RefUnwindSafe for StreamState
impl Send for StreamState
impl Sync for StreamState
impl Unpin for StreamState
impl UnwindSafe for StreamState
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more