pub enum Error {
BinarySv2Error(Error),
UnexpectedDestinationLength {
expected: usize,
actual: usize,
},
PayloadLengthMismatch {
declared: usize,
written: usize,
},
UnexpectedHeaderLength(usize),
PayloadTooLong(usize),
}Variants§
BinarySv2Error(Error)
Binary Sv2 data format error.
UnexpectedDestinationLength
The buffer passed to crate::framing::EncodableFrame::encode_into is not exactly as
long as the frame.
Fields
PayloadLengthMismatch
The message serialized to a different number of bytes than the
crate::header::Header declares, i.e. than its GetSize reported.
Fields
UnexpectedHeaderLength(usize)
The buffer is too short to hold a crate::header::Header.
PayloadTooLong(usize)
A message of the given serialized length does not fit the 24-bit msg_length field of a
crate::header::Header.
Trait Implementations§
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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