#[non_exhaustive]pub enum BlobError {
InvalidHeaderSize,
HeaderTooBig {
size: u64,
},
MessageTooBig {
size: u64,
},
Empty,
}
Expand description
An error that occurs when decoding a blob.
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.
InvalidHeaderSize
Header size could not be decoded to a u32.
HeaderTooBig
Blob header is bigger than MAX_BLOB_HEADER_SIZE
.
MessageTooBig
Blob content is bigger than MAX_BLOB_MESSAGE_SIZE
.
Empty
The blob is empty because the raw
and zlib-data
fields are missing.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for BlobError
impl Send for BlobError
impl Sync for BlobError
impl Unpin for BlobError
impl UnwindSafe for BlobError
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