Enum dns_stamp_parser::DnsStamp [−][src]
This enum represent a DNS Stamp.
Variants
DnsPlain(DnsPlain)
See Plain DNS stamps.
DnsCrypt(DnsCrypt)
See DNSCrypt stamps.
DnsOverHttps(DnsOverHttps)
DnsOverTls(DnsOverTls)
See DNS-over-TLS stamps.
DnsOverQuic(DnsOverTls)
See DNS-over-QUIC stamps.
ObliviousDoHTarget(ObliviousDoHTarget)
AnonymizedDnsCryptRelay(AnonymizedDnsCryptRelay)
See Plain DNS stamps.
ObliviousDoHRelay(DnsOverHttps)
Implementations
impl DnsStamp
[src]
pub fn decode(stamp: &str) -> DecodeResult<DnsStamp>
[src]
Decode a crate::DnsStamp
from a &str
.
impl DnsStamp
[src]
pub fn encode(&self) -> EncodeResult<String>
[src]
Encode a crate::DnsStamp
to a std::string::String
.
Trait Implementations
impl Clone for DnsStamp
[src]
impl Debug for DnsStamp
[src]
impl Eq for DnsStamp
[src]
impl FromStr for DnsStamp
[src]
type Err = DecodeError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> DecodeResult<Self>
[src]
impl PartialEq<DnsStamp> for DnsStamp
[src]
impl StructuralEq for DnsStamp
[src]
impl StructuralPartialEq for DnsStamp
[src]
Auto Trait Implementations
impl RefUnwindSafe for DnsStamp
[src]
impl Send for DnsStamp
[src]
impl Sync for DnsStamp
[src]
impl Unpin for DnsStamp
[src]
impl UnwindSafe for DnsStamp
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,