#[non_exhaustive]pub enum Status {
Show 14 variants
InvalidArg,
InvalidLevel,
BufTooSmall,
SizeUnknown,
UnsupportedAlgo,
Compression,
Decompression,
Truncated,
SizeLimit,
StreamFinished,
StreamState,
Oom,
Internal,
Other(i32),
}Expand description
A C ABI status code, carried on Error so callers can match on the exact
failure. Values match the CU_ERR_* constants.
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.
InvalidArg
InvalidLevel
BufTooSmall
SizeUnknown
UnsupportedAlgo
Compression
Decompression
Truncated
SizeLimit
StreamFinished
StreamState
Oom
Internal
Other(i32)
A code not recognised by this binding (carries the raw value).
Trait Implementations§
impl Copy for Status
impl Eq for Status
impl StructuralPartialEq for Status
Auto Trait Implementations§
impl Forget for Status
impl Freeze for Status
impl Move for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnsafeUnpin for Status
impl UnwindSafe for Status
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