pub enum FastPacketError {
Decode(JpegError),
UnsupportedSof(SofKind),
UnsupportedColorSpace(ColorSpace),
UnsupportedSampling,
UnsupportedComponentOrder,
MissingScan,
MissingQuantTable {
slot: u8,
},
MissingHuffmanTable {
kind: TableKind,
slot: u8,
},
EntropyMarkerUnsupported {
marker: u8,
},
TruncatedEntropy,
}Expand description
Error while building a backend fast-path JPEG packet.
Variants§
Decode(JpegError)
Header or entropy decode failed.
UnsupportedSof(SofKind)
JPEG SOF kind is not supported by the fast path.
UnsupportedColorSpace(ColorSpace)
JPEG color space is not supported by the selected fast path.
UnsupportedSampling
JPEG component sampling does not match the selected fast path.
UnsupportedComponentOrder
Scan component order does not match SOF component order.
MissingScan
Stream does not contain a scan payload.
MissingQuantTable
Referenced quantization table is absent.
MissingHuffmanTable
Referenced Huffman table is absent.
EntropyMarkerUnsupported
Entropy payload contains a marker unsupported by the fast path.
TruncatedEntropy
Entropy payload ended before the packet could be built.
Trait Implementations§
Source§impl Clone for FastPacketError
impl Clone for FastPacketError
Source§fn clone(&self) -> FastPacketError
fn clone(&self) -> FastPacketError
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 moreSource§impl Debug for FastPacketError
impl Debug for FastPacketError
impl Eq for FastPacketError
Source§impl From<JpegError> for FastPacketError
impl From<JpegError> for FastPacketError
Source§impl PartialEq for FastPacketError
impl PartialEq for FastPacketError
Source§fn eq(&self, other: &FastPacketError) -> bool
fn eq(&self, other: &FastPacketError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FastPacketError
Auto Trait Implementations§
impl Freeze for FastPacketError
impl RefUnwindSafe for FastPacketError
impl Send for FastPacketError
impl Sync for FastPacketError
impl Unpin for FastPacketError
impl UnsafeUnpin for FastPacketError
impl UnwindSafe for FastPacketError
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