pub enum FrameFault {
Recoverable,
Fatal,
}Expand description
How badly a framing step failed.
A self-delimiting format resyncs on its next delimiter; a length prefix has none, so nothing tells payload bytes from the next header. Only the framer knows which case it is in, so it says, rather than the connection guessing.
Variants§
Recoverable
Bad frame, good link: skip it and keep reading.
Fatal
The link can no longer be interpreted and must close.
Trait Implementations§
Source§impl Clone for FrameFault
impl Clone for FrameFault
Source§fn clone(&self) -> FrameFault
fn clone(&self) -> FrameFault
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FrameFault
Source§impl Debug for FrameFault
impl Debug for FrameFault
impl Eq for FrameFault
Source§impl PartialEq for FrameFault
impl PartialEq for FrameFault
impl StructuralPartialEq for FrameFault
Auto Trait Implementations§
impl Freeze for FrameFault
impl RefUnwindSafe for FrameFault
impl Send for FrameFault
impl Sync for FrameFault
impl Unpin for FrameFault
impl UnsafeUnpin for FrameFault
impl UnwindSafe for FrameFault
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