pub enum State<E> {
Eof,
Err(E),
}Expand description
Disconnect state
Currently this is either an error, or an ‘end of file’
Variants§
Trait Implementations§
source§impl<E: Ord> Ord for State<E>
impl<E: Ord> Ord for State<E>
source§impl<E: PartialEq> PartialEq for State<E>
impl<E: PartialEq> PartialEq for State<E>
source§impl<E: PartialOrd> PartialOrd for State<E>
impl<E: PartialOrd> PartialOrd for State<E>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl<E: Copy> Copy for State<E>
impl<E: Eq> Eq for State<E>
impl<E> StructuralPartialEq for State<E>
Auto Trait Implementations§
impl<E> Freeze for State<E>where
E: Freeze,
impl<E> RefUnwindSafe for State<E>where
E: RefUnwindSafe,
impl<E> Send for State<E>where
E: Send,
impl<E> Sync for State<E>where
E: Sync,
impl<E> Unpin for State<E>where
E: Unpin,
impl<E> UnwindSafe for State<E>where
E: UnwindSafe,
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