pub enum Bad {
Short,
Tag(u8),
Unknown(String),
Payload(String),
Utf8,
Ref(usize),
Trailing,
}Expand description
A sender that framed something this end cannot read is a protocol disagreement, not a task’s error, so it goes to whoever owns the link.
Variants§
Short
Tag(u8)
Unknown(String)
The fleet disagrees about what types exist, which is a deployment fact rather than a corrupt frame.
Payload(String)
The right tag and length, but the type’s own decoder refused it.
Utf8
Ref(usize)
A reference to a pair never written, or one the frame has not finished writing. A sender walking an acyclic graph cannot emit either.
Trailing
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Bad
impl RefUnwindSafe for Bad
impl Send for Bad
impl Sync for Bad
impl Unpin for Bad
impl UnwindSafe for Bad
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