Enum sequoia_ipc::keybox::KeyboxRecord
source · #[non_exhaustive]pub enum KeyboxRecord {
Header(HeaderRecord),
OpenPGP(OpenPGPRecordV1),
X509(X509Record),
Unknown(usize, Vec<u8>),
}
Expand description
Keybox record
Holds the record’s data and provides access to the fields shared by all record types.
Note: This enum cannot be exhaustively matched to allow future extensions.
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.
Header(HeaderRecord)
Header record.
OpenPGP(OpenPGPRecordV1)
OpenPGP record.
X509(X509Record)
X.509 record.
Unknown(usize, Vec<u8>)
Catchall.
Implementations§
source§impl KeyboxRecord
impl KeyboxRecord
Provides access to the fields shared by all keybox record types.
sourcepub fn length_field(&self) -> u32
pub fn length_field(&self) -> u32
The first 4 bytes contain the record’s length.
sourcepub fn typ(&self) -> KeyboxRecordType
pub fn typ(&self) -> KeyboxRecordType
The 5th byte contains the record’s type.
Trait Implementations§
source§impl Debug for KeyboxRecord
impl Debug for KeyboxRecord
source§impl PartialEq for KeyboxRecord
impl PartialEq for KeyboxRecord
source§fn eq(&self, other: &KeyboxRecord) -> bool
fn eq(&self, other: &KeyboxRecord) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for KeyboxRecord
impl StructuralPartialEq for KeyboxRecord
Auto Trait Implementations§
impl Freeze for KeyboxRecord
impl RefUnwindSafe for KeyboxRecord
impl Send for KeyboxRecord
impl Sync for KeyboxRecord
impl Unpin for KeyboxRecord
impl UnwindSafe for KeyboxRecord
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