pub struct RRSig {
pub name: Name,
pub ty: u16,
pub alg: u8,
pub labels: u8,
pub orig_ttl: u32,
pub expiration: u32,
pub inception: u32,
pub key_tag: u16,
pub key_name: Name,
pub signature: Vec<u8>,
}Expand description
A Resource Record (set) Signature resource record. This contains a signature over all the resources records of the given type at the given name.
Fields§
§name: NameThe name this record is at.
This is also the name of any records which this signature is covering (ignoring wildcards).
ty: u16The resource record type which this RRSig is signing.
All resources records of this type at the same name as [self.name] must be signed by
this RRSig.
alg: u8The algorithm which is being used to sign.
This must match the DnsKey::alg field in the DnsKey being used to sign.
labels: u8The number of labels in the name of the records that this signature is signing.
If this is less than the number of labels in [self.name], this signature is covering a
wildcard entry.
orig_ttl: u32The TTL of the records which this RRSig is signing.
expiration: u32The expiration (as a UNIX timestamp) of this signature.
inception: u32The time (as a UNIX timestamp) at which this signature becomes valid.
key_tag: u16A short tag which describes the matching DnsKey.
This matches the DnsKey::key_tag for the DnsKey which created this signature.
key_name: NameThe DnsKey::name in the DnsKey which created this signature.
This must be a parent of [self.name].
signature: Vec<u8>The signature itself.
Trait Implementations§
Source§impl Ord for RRSig
impl Ord for RRSig
Source§impl PartialOrd for RRSig
impl PartialOrd for RRSig
impl Eq for RRSig
impl StructuralPartialEq for RRSig
Auto Trait Implementations§
impl Freeze for RRSig
impl RefUnwindSafe for RRSig
impl Send for RRSig
impl Sync for RRSig
impl Unpin for RRSig
impl UnwindSafe for RRSig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<RR> Record for RRwhere
RR: StaticRecord,
impl<RR> Record for RRwhere
RR: StaticRecord,
Source§fn write_u16_len_prefixed_data(&self, out: &mut Vec<u8>)
fn write_u16_len_prefixed_data(&self, out: &mut Vec<u8>)
Vec.