Struct sequoia_ipc::keybox::OpenPGPRecordV1
source · pub struct OpenPGPRecordV1 { /* private fields */ }
Expand description
Keybox OpenPGP record
Implementations§
source§impl OpenPGPRecordV1
impl OpenPGPRecordV1
sourcepub fn data_offset(&self) -> usize
pub fn data_offset(&self) -> usize
Data offset field.
sourcepub fn data_length(&self) -> usize
pub fn data_length(&self) -> usize
Data length field.
sourcepub fn data_section(&self) -> Result<&[u8]>
pub fn data_section(&self) -> Result<&[u8]>
The record’s contained raw data.
sourcepub fn metadata_section(&self) -> &[u8] ⓘ
pub fn metadata_section(&self) -> &[u8] ⓘ
Metadata section, unhandled.
sourcepub fn checksum_field(&self) -> [u8; 20]
pub fn checksum_field(&self) -> [u8; 20]
Checksum field.
Contains a there’s a SHA1 hash over the whole record.
sourcepub fn compute_checksum(&self) -> Result<Vec<u8>>
pub fn compute_checksum(&self) -> Result<Vec<u8>>
Compute the checksum
Computes a SHA1 hash over the whole record.
Trait Implementations§
source§impl Debug for OpenPGPRecordV1
impl Debug for OpenPGPRecordV1
source§impl PartialEq for OpenPGPRecordV1
impl PartialEq for OpenPGPRecordV1
source§fn eq(&self, other: &OpenPGPRecordV1) -> bool
fn eq(&self, other: &OpenPGPRecordV1) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for OpenPGPRecordV1
impl StructuralPartialEq for OpenPGPRecordV1
Auto Trait Implementations§
impl Freeze for OpenPGPRecordV1
impl RefUnwindSafe for OpenPGPRecordV1
impl Send for OpenPGPRecordV1
impl Sync for OpenPGPRecordV1
impl Unpin for OpenPGPRecordV1
impl UnwindSafe for OpenPGPRecordV1
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