pub enum StreamPhase {
Sync,
Preamble,
Header,
Data,
}Expand description
Receive phase represented by the decoder’s retained bytes.
Variants§
Sync
Searching for the first preamble octet; retained bytes are only noise.
Preamble
The first preamble octet has been recognized.
Header
Both preamble octets are present and the fixed header is incomplete.
Data
A valid fixed header is present and the rest of its frame hasn’t all arrived, whether the decoder is buffering the frame or skipping it by count.
Trait Implementations§
Source§impl Clone for StreamPhase
impl Clone for StreamPhase
impl Copy for StreamPhase
Source§impl Debug for StreamPhase
impl Debug for StreamPhase
impl Eq for StreamPhase
Source§impl Hash for StreamPhase
impl Hash for StreamPhase
Source§impl PartialEq for StreamPhase
impl PartialEq for StreamPhase
impl StructuralPartialEq for StreamPhase
Auto Trait Implementations§
impl Freeze for StreamPhase
impl RefUnwindSafe for StreamPhase
impl Send for StreamPhase
impl Sync for StreamPhase
impl Unpin for StreamPhase
impl UnsafeUnpin for StreamPhase
impl UnwindSafe for StreamPhase
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