pub struct TLSA {
pub name: Name,
pub cert_usage: u8,
pub selector: u8,
pub data_ty: u8,
pub data: Vec<u8>,
}Expand description
A TLS Certificate Association resource record containing information about the TLS certificate which should be expected when communicating with the host at the given name.
See https://en.wikipedia.org/wiki/DNS-based_Authentication_of_Named_Entities#TLSA_RR for more info.
Fields§
§name: NameThe name this record is at.
cert_usage: u8The type of constraint on the TLS certificate(s) used which should be enforced by this record.
selector: u8Whether to match on the full certificate, or only the public key.
data_ty: u8The type of data included which is used to match the TLS certificate(s).
data: Vec<u8>The certificate data or hash of the certificate data itself.
Trait Implementations§
Source§impl Ord for TLSA
impl Ord for TLSA
Source§impl PartialOrd for TLSA
impl PartialOrd for TLSA
impl Eq for TLSA
impl StructuralPartialEq for TLSA
Auto Trait Implementations§
impl Freeze for TLSA
impl RefUnwindSafe for TLSA
impl Send for TLSA
impl Sync for TLSA
impl Unpin for TLSA
impl UnwindSafe for TLSA
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.