Enum DecodeState
pub enum DecodeState {
Incomplete,
Complete(FixedHeader),
}Expand description
Result of feeding bytes to the decoder.
Variants§
Incomplete
Need more bytes. Call decode again with additional data.
Complete(FixedHeader)
A complete fixed header has been parsed. The remaining_length field
tells the caller how many more bytes to read for the variable header +
payload. Those bytes should then be passed to
Packet::decode.
Trait Implementations§
§impl Clone for DecodeState
impl Clone for DecodeState
§fn clone(&self) -> DecodeState
fn clone(&self) -> DecodeState
Returns a duplicate 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 more§impl Debug for DecodeState
impl Debug for DecodeState
§impl PartialEq for DecodeState
impl PartialEq for DecodeState
impl Copy for DecodeState
impl Eq for DecodeState
impl StructuralPartialEq for DecodeState
Auto Trait Implementations§
impl Freeze for DecodeState
impl RefUnwindSafe for DecodeState
impl Send for DecodeState
impl Sync for DecodeState
impl Unpin for DecodeState
impl UnwindSafe for DecodeState
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