Enum libheif_rs::HeifErrorCode
source · #[non_exhaustive]#[repr(C)]pub enum HeifErrorCode {
Show 13 variants
InputDoesNotExist = 1,
InvalidInput = 2,
UnsupportedFileType = 3,
UnsupportedFeature = 4,
UsageError = 5,
MemoryAllocationError = 6,
DecoderPluginError = 7,
EncoderPluginError = 8,
EncodingError = 9,
ColorProfileDoesNotExist = 10,
PluginLoadingError = 11,
ContextCreateFailed = 12,
Unknown = 13,
}
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.
InputDoesNotExist = 1
InvalidInput = 2
UnsupportedFileType = 3
UnsupportedFeature = 4
UsageError = 5
MemoryAllocationError = 6
DecoderPluginError = 7
EncoderPluginError = 8
EncodingError = 9
ColorProfileDoesNotExist = 10
PluginLoadingError = 11
ContextCreateFailed = 12
Unknown = 13
This value is used when library libheif
returns unknown value of error code.
Implementations§
Trait Implementations§
source§impl Clone for HeifErrorCode
impl Clone for HeifErrorCode
source§fn clone(&self) -> HeifErrorCode
fn clone(&self) -> HeifErrorCode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for HeifErrorCode
impl Debug for HeifErrorCode
impl Copy for HeifErrorCode
Auto Trait Implementations§
impl Freeze for HeifErrorCode
impl RefUnwindSafe for HeifErrorCode
impl Send for HeifErrorCode
impl Sync for HeifErrorCode
impl Unpin for HeifErrorCode
impl UnwindSafe for HeifErrorCode
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