#[non_exhaustive]pub enum PassthroughRejectReason {
EmptyPayload,
TransferSyntaxMismatch {
source: CompressedTransferSyntax,
destination: CompressedTransferSyntax,
},
PayloadKindMismatch {
source: CompressedPayloadKind,
destination: CompressedPayloadKind,
},
DimensionsMismatch {
source: (u32, u32),
destination: (u32, u32),
},
ComponentsMismatch {
source: u8,
destination: u8,
},
BitDepthMismatch {
source: u8,
destination: u8,
},
ColorspaceMismatch {
source: Colorspace,
destination: Colorspace,
},
TileLayoutMismatch {
source: Option<TileLayout>,
destination: TileLayout,
},
}Expand description
First reason a compressed payload was rejected for byte-preserving copy.
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.
EmptyPayload
The source compressed payload is empty.
TransferSyntaxMismatch
Source and destination compressed syntaxes differ.
Fields
§
source: CompressedTransferSyntaxSource syntax found in the candidate.
§
destination: CompressedTransferSyntaxRequired destination syntax.
PayloadKindMismatch
Source and destination payload/container shapes differ.
Fields
§
source: CompressedPayloadKindSource payload shape found in the candidate.
§
destination: CompressedPayloadKindRequired destination payload shape.
DimensionsMismatch
Source and destination dimensions differ.
Fields
ComponentsMismatch
Source and destination component counts differ.
Fields
BitDepthMismatch
Source and destination bit depths differ.
Fields
ColorspaceMismatch
Source and destination colorspaces differ.
Fields
§
source: ColorspaceSource colorspace found in the candidate.
§
destination: ColorspaceRequired destination colorspace.
TileLayoutMismatch
Source and destination tile layouts differ.
Fields
§
source: Option<TileLayout>Source tile layout found in the candidate.
§
destination: TileLayoutRequired destination tile layout.
Trait Implementations§
Source§impl Clone for PassthroughRejectReason
impl Clone for PassthroughRejectReason
Source§fn clone(&self) -> PassthroughRejectReason
fn clone(&self) -> PassthroughRejectReason
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 PassthroughRejectReason
Source§impl Debug for PassthroughRejectReason
impl Debug for PassthroughRejectReason
impl Eq for PassthroughRejectReason
Source§impl PartialEq for PassthroughRejectReason
impl PartialEq for PassthroughRejectReason
Source§fn eq(&self, other: &PassthroughRejectReason) -> bool
fn eq(&self, other: &PassthroughRejectReason) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PassthroughRejectReason
Auto Trait Implementations§
impl Freeze for PassthroughRejectReason
impl RefUnwindSafe for PassthroughRejectReason
impl Send for PassthroughRejectReason
impl Sync for PassthroughRejectReason
impl Unpin for PassthroughRejectReason
impl UnsafeUnpin for PassthroughRejectReason
impl UnwindSafe for PassthroughRejectReason
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