pub enum PackError {
InvalidBlockCount(u8),
InvalidAppType(u8),
InvalidSequence(u8),
PayloadTooLarge(usize),
}Expand description
Errors returned by header packing.
Variants§
InvalidBlockCount(u8)
block_count was outside 1..=32.
InvalidAppType(u8)
app_type was outside 0..=15.
InvalidSequence(u8)
sequence was outside 0..=31.
PayloadTooLarge(usize)
payload.len() exceeded MAX_PAYLOAD_BYTES.
Trait Implementations§
impl Copy for PackError
impl Eq for PackError
impl StructuralPartialEq for PackError
Auto Trait Implementations§
impl Freeze for PackError
impl RefUnwindSafe for PackError
impl Send for PackError
impl Sync for PackError
impl Unpin for PackError
impl UnsafeUnpin for PackError
impl UnwindSafe for PackError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more