pub enum ReadState {
Pending,
Header(RawHeader),
Corrupted,
}Variants§
Pending
Client is waiting for packet
Header(RawHeader)
Client read packet header and waiting for more data
Corrupted
Client corrupted and cannot continue
Trait Implementations§
impl StructuralPartialEq for ReadState
Auto Trait Implementations§
impl Freeze for ReadState
impl RefUnwindSafe for ReadState
impl Send for ReadState
impl Sync for ReadState
impl Unpin for ReadState
impl UnwindSafe for ReadState
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