#[non_exhaustive]pub enum Subpacket {
Image(Image),
Unknown(u8, Box<[u8]>),
}
Expand description
User Attribute subpackets.
See Section 5.12 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.
Image(Image)
Image subpacket.
See Section 5.12.1 of RFC 9580 for details.
Unknown(u8, Box<[u8]>)
Unknown subpacket.
Trait Implementations§
Source§impl MarshalInto for Subpacket
impl MarshalInto for Subpacket
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 Subpacket
impl StructuralPartialEq for Subpacket
Auto Trait Implementations§
impl Freeze for Subpacket
impl RefUnwindSafe for Subpacket
impl Send for Subpacket
impl Sync for Subpacket
impl Unpin for Subpacket
impl UnwindSafe for Subpacket
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