pub struct SigRecord<'a>(/* private fields */);Expand description
Typed view of a SIG record.
Implementations§
Source§impl<'a> SigRecord<'a>
impl<'a> SigRecord<'a>
Sourcepub fn type_covered(self) -> u16
pub fn type_covered(self) -> u16
Type covered (SIG_TYPE_COVERED).
Sourcepub fn algorithm(self) -> u8
pub fn algorithm(self) -> u8
Algorithm (SIG_ALGORITHM).
Sourcepub fn labels(self) -> u8
pub fn labels(self) -> u8
Number of labels (SIG_LABELS).
Sourcepub fn original_ttl(self) -> u32
pub fn original_ttl(self) -> u32
Original TTL (SIG_ORIGINAL_TTL).
Sourcepub fn expiration(self) -> u32
pub fn expiration(self) -> u32
Signature expiration time
(SIG_EXPIRATION).
Sourcepub fn inception(self) -> u32
pub fn inception(self) -> u32
Signature inception time
(SIG_INCEPTION).
Sourcepub fn key_tag(self) -> u16
pub fn key_tag(self) -> u16
Key tag (SIG_KEY_TAG).
Sourcepub fn signers_name(self) -> &'a str
pub fn signers_name(self) -> &'a str
Signer’s name (SIG_SIGNERS_NAME).
Sourcepub fn signature(self) -> &'a [u8] ⓘ
pub fn signature(self) -> &'a [u8] ⓘ
Signature data (SIG_SIGNATURE).
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for SigRecord<'a>
impl<'a> RefUnwindSafe for SigRecord<'a>
impl<'a> Send for SigRecord<'a>
impl<'a> Sync for SigRecord<'a>
impl<'a> Unpin for SigRecord<'a>
impl<'a> UnsafeUnpin for SigRecord<'a>
impl<'a> UnwindSafe for SigRecord<'a>
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