Enum fire_stream::packet::PacketError
source · #[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.