#[non_exhaustive]#[repr(C)]pub enum HeifErrorCode {
Show 14 variants
InputDoesNotExist = 1,
InvalidInput = 2,
UnsupportedFileType = 3,
UnsupportedFeature = 4,
UsageError = 5,
MemoryAllocationError = 6,
DecoderPluginError = 7,
EncoderPluginError = 8,
EncodingError = 9,
ColorProfileDoesNotExist = 10,
PluginLoadingError = 11,
Canceled = 12,
ContextCreateFailed = 13,
Unknown = 14,
}
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
Input file does not exist.
InvalidInput = 2
Error in input file. Corrupted or invalid content.
UnsupportedFileType = 3
UnsupportedFeature = 4
Image requires an unsupported decoder feature.
UsageError = 5
Library API has been used in an invalid way.
MemoryAllocationError = 6
Could not allocate enough memory.
DecoderPluginError = 7
The decoder plugin generated an error.
EncoderPluginError = 8
The encoder plugin generated an error.
EncodingError = 9
Error during encoding or when writing to the output.
ColorProfileDoesNotExist = 10
Application has asked for a color profile type that does not exist.
PluginLoadingError = 11
Error loading a dynamic plugin.
Canceled = 12
Available on crate feature
v1_19
only.Operation has been canceled.
ContextCreateFailed = 13
Unknown = 14
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 duplicate 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