Enum jpegxl_rs::EncodeError
source · #[non_exhaustive]pub enum EncodeError {
CannotCreateEncoder,
GenericError,
NotSupported,
NeedMoreOutput,
OutOfMemory,
Jbrd,
BadInput,
ApiUsage,
UnknownStatus(JxlEncoderError),
}
Expand description
Errors derived from [JxlEncoderStatus
]
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.
CannotCreateEncoder
Cannot create an encoder
GenericError
Generic Error
NotSupported
Not Supported
NeedMoreOutput
Need more output
OutOfMemory
Out of memory
Jbrd
JPEG bitstream reconstruction data could not be represented (e.g. too much tail data)
BadInput
Input is invalid (e.g. corrupt JPEG file or ICC profile)
ApiUsage
The encoder API is used in an incorrect way. In this case, a debug build of libjxl should output a specific error message
UnknownStatus(JxlEncoderError)
Unknown status
Trait Implementations§
source§impl Debug for EncodeError
impl Debug for EncodeError
source§impl Display for EncodeError
impl Display for EncodeError
source§impl Error for EncodeError
impl Error for EncodeError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for EncodeError
impl RefUnwindSafe for EncodeError
impl Send for EncodeError
impl Sync for EncodeError
impl Unpin for EncodeError
impl UnwindSafe for EncodeError
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