pub enum ReliableStationDecodeError {
BadMagic,
UnknownKind(u8),
Truncated {
needed: usize,
available: usize,
},
TrailingBytes(usize),
}Expand description
Reliable station frame decode error.
Variants§
BadMagic
Frame magic did not match.
UnknownKind(u8)
Frame kind byte is unknown.
Truncated
Frame ended before all fields were available.
TrailingBytes(usize)
Frame had trailing bytes after a complete payload.
Trait Implementations§
Source§impl Clone for ReliableStationDecodeError
impl Clone for ReliableStationDecodeError
Source§fn clone(&self) -> ReliableStationDecodeError
fn clone(&self) -> ReliableStationDecodeError
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 ReliableStationDecodeError
Source§impl Debug for ReliableStationDecodeError
impl Debug for ReliableStationDecodeError
Source§impl Display for ReliableStationDecodeError
impl Display for ReliableStationDecodeError
impl Eq for ReliableStationDecodeError
Source§impl Error for ReliableStationDecodeError
impl Error for ReliableStationDecodeError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl StructuralPartialEq for ReliableStationDecodeError
Auto Trait Implementations§
impl Freeze for ReliableStationDecodeError
impl RefUnwindSafe for ReliableStationDecodeError
impl Send for ReliableStationDecodeError
impl Sync for ReliableStationDecodeError
impl Unpin for ReliableStationDecodeError
impl UnsafeUnpin for ReliableStationDecodeError
impl UnwindSafe for ReliableStationDecodeError
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