#[non_exhaustive]pub enum Image {
JPEG(Box<[u8]>),
Private(u8, Box<[u8]>),
Unknown(u8, Box<[u8]>),
}
Expand description
Image subpacket.
See Section 5.12.1 of RFC 9580 for details.
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.
JPEG(Box<[u8]>)
A JPEG image format.
Private(u8, Box<[u8]>)
Private, experimental image format.
Unknown(u8, Box<[u8]>)
Unknown image format.
Trait Implementations§
Source§impl MarshalInto for Image
impl MarshalInto for Image
Source§fn serialized_len(&self) -> usize
fn serialized_len(&self) -> usize
Computes the maximal length of the serialized representation. Read more
Source§fn serialize_into(&self, buf: &mut [u8]) -> Result<usize>
fn serialize_into(&self, buf: &mut [u8]) -> Result<usize>
Serializes into the given buffer. Read more
impl Eq for Image
impl StructuralPartialEq for Image
Auto Trait Implementations§
impl Freeze for Image
impl RefUnwindSafe for Image
impl Send for Image
impl Sync for Image
impl Unpin for Image
impl UnwindSafe for Image
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