#[non_exhaustive]pub enum Htj2kEncodeErrorKind {
InvalidInput,
Unsupported,
ArithmeticOverflow,
HostResource,
Accelerator,
CodestreamValidation,
InternalInvariant,
Other,
}Expand description
Machine-readable class for a native HTJ2K encode failure.
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.
InvalidInput
Caller-provided samples, geometry, metadata, or options were invalid.
Unsupported
The requested encode feature or shape is not implemented.
ArithmeticOverflow
Checked arithmetic overflowed while planning an encode phase.
HostResource
A host memory limit or allocation rejected the encode workspace.
Accelerator
An optional encode-stage accelerator failed.
CodestreamValidation
A generated codestream failed validation.
InternalInvariant
Native encode state violated an internal invariant.
Other
A newer native failure has no more specific shared classification.
Trait Implementations§
Source§impl Clone for Htj2kEncodeErrorKind
impl Clone for Htj2kEncodeErrorKind
Source§fn clone(&self) -> Htj2kEncodeErrorKind
fn clone(&self) -> Htj2kEncodeErrorKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Htj2kEncodeErrorKind
Source§impl Debug for Htj2kEncodeErrorKind
impl Debug for Htj2kEncodeErrorKind
impl Eq for Htj2kEncodeErrorKind
Source§impl PartialEq for Htj2kEncodeErrorKind
impl PartialEq for Htj2kEncodeErrorKind
impl StructuralPartialEq for Htj2kEncodeErrorKind
Auto Trait Implementations§
impl Freeze for Htj2kEncodeErrorKind
impl RefUnwindSafe for Htj2kEncodeErrorKind
impl Send for Htj2kEncodeErrorKind
impl Sync for Htj2kEncodeErrorKind
impl Unpin for Htj2kEncodeErrorKind
impl UnsafeUnpin for Htj2kEncodeErrorKind
impl UnwindSafe for Htj2kEncodeErrorKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more