pub enum RxError {
NotAPacket,
Truncated {
needs: usize,
has: usize,
},
}Expand description
Why a buffer did not read as a packet.
Variants§
NotAPacket
The bytes at this point do not start with the sync word.
Truncated
The buffer ends before the packet it announced does.
Trait Implementations§
impl Copy for RxError
impl Eq for RxError
impl StructuralPartialEq for RxError
Auto Trait Implementations§
impl Freeze for RxError
impl RefUnwindSafe for RxError
impl Send for RxError
impl Sync for RxError
impl Unpin for RxError
impl UnsafeUnpin for RxError
impl UnwindSafe for RxError
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