pub struct DnsKey {
pub name: Name,
pub flags: u16,
pub protocol: u8,
pub alg: u8,
pub pubkey: Vec<u8>,
}Expand description
A public key resource record which can be used to validate RRSigs.
Fields§
§name: NameThe name this record is at.
flags: u16Flags which constrain the usage of this public key.
protocol: u8The protocol this key is used for (protocol 3 is DNSSEC).
alg: u8The algorithm which this public key uses to sign data.
pubkey: Vec<u8>The public key itself.
Implementations§
Trait Implementations§
Source§impl Ord for DnsKey
impl Ord for DnsKey
Source§impl PartialOrd for DnsKey
impl PartialOrd for DnsKey
impl Eq for DnsKey
impl StructuralPartialEq for DnsKey
Auto Trait Implementations§
impl Freeze for DnsKey
impl RefUnwindSafe for DnsKey
impl Send for DnsKey
impl Sync for DnsKey
impl Unpin for DnsKey
impl UnwindSafe for DnsKey
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<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>)
Writes the data of this record, prefixed by a u16 length, to the given
Vec.