Enum trust_dns_proto::rr::rdata::tlsa::Selector [−][src]
pub enum Selector { Full, Spki, Unassigned(u8), Private, }
RFC 6698, DNS-Based Authentication for TLS
2.1.2. The Selector Field
A one-octet value, called "selector", specifies which part of the TLS
certificate presented by the server will be matched against the
association data. This value is defined in a new IANA registry (see
Section 7.3). The selectors defined in this document are:
0 -- Full
1 -- Spki
(Note that the use of "selector" in this document is completely
unrelated to the use of "selector" in DomainKeys Identified Mail
(DKIM) [RFC6376].)
Variants
Full
Full certificate: the Certificate binary structure as defined in [RFC5280]
Spki
SubjectPublicKeyInfo: DER-encoded binary structure as defined in [RFC5280]
Unassigned(u8)
Unassigned at the time of this writing
Private
Private usage
Trait Implementations
impl Debug for Selector
[src]
impl Debug for Selector
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Selector
[src]
impl PartialEq for Selector
fn eq(&self, other: &Selector) -> bool
[src]
fn eq(&self, other: &Selector) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Selector) -> bool
[src]
fn ne(&self, other: &Selector) -> bool
This method tests for !=
.
impl Eq for Selector
[src]
impl Eq for Selector
impl Hash for Selector
[src]
impl Hash for Selector
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl Clone for Selector
[src]
impl Clone for Selector
fn clone(&self) -> Selector
[src]
fn clone(&self) -> Selector
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for Selector
[src]
impl Copy for Selector
impl From<u8> for Selector
[src]
impl From<u8> for Selector
impl From<Selector> for u8
[src]
impl From<Selector> for u8