#[non_exhaustive]pub enum PacketError {
Header(Cow<'static, str>),
Body(Cow<'static, str>),
Json(Error),
Io(Error),
BodyLimitReached(u32),
MacNotEqual,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Header(Cow<'static, str>)
Body(Cow<'static, str>)
Json(Error)
Available on crate feature
json
only.Io(Error)
Available on crate feature
fs
only.BodyLimitReached(u32)
Returns the size that should have been sent
MacNotEqual
Available on crate feature
encrypted
only.Trait Implementations§
Source§impl Debug for PacketError
impl Debug for PacketError
Source§impl Display for PacketError
impl Display for PacketError
Source§impl From<Error> for PacketError
impl From<Error> for PacketError
Auto Trait Implementations§
impl Freeze for PacketError
impl !RefUnwindSafe for PacketError
impl Send for PacketError
impl Sync for PacketError
impl Unpin for PacketError
impl !UnwindSafe for PacketError
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