pub struct SvcParamKey(/* private fields */);
Implementations§
Source§impl SvcParamKey
impl SvcParamKey
pub const MANDATORY: SvcParamKey
pub const ALPN: SvcParamKey
pub const NO_DEFAULT_ALPN: SvcParamKey
pub const PORT: SvcParamKey
pub const IPV4HINT: SvcParamKey
pub const ECH: SvcParamKey
pub const IPV6HINT: SvcParamKey
pub const DOHPATH: SvcParamKey
Source§impl SvcParamKey
impl SvcParamKey
pub const COMPOSE_LEN: u16 = 2u16
Sourcepub fn from_mnemonic(m: &[u8]) -> Option<Self>
pub fn from_mnemonic(m: &[u8]) -> Option<Self>
Returns a value from a well-defined mnemonic.
Sourcepub const fn to_mnemonic(self) -> Option<&'static [u8]>
pub const fn to_mnemonic(self) -> Option<&'static [u8]>
Returns the mnemonic for this value if there is one.
This will also return a mnemonic if a well-defined variant
is hidden in a Int
variant.
Sourcepub const fn to_mnemonic_str(self) -> Option<&'static str>
pub const fn to_mnemonic_str(self) -> Option<&'static str>
Returns the mnemonic as a &str
for this value if there is one
pub fn parse<'a, Octs: AsRef<[u8]> + ?Sized>( parser: &mut Parser<'a, Octs>, ) -> Result<Self, ParseError>
pub fn compose<Target: OctetsBuilder + ?Sized>( &self, target: &mut Target, ) -> Result<(), Target::AppendError>
Source§impl SvcParamKey
impl SvcParamKey
pub fn from_bytes(bytes: &[u8]) -> Option<Self>
Source§impl SvcParamKey
impl SvcParamKey
pub const PRIVATE_RANGE_BEGIN: u16 = 65_280u16
pub const PRIVATE_RANGE_END: u16 = 65_534u16
pub const INVALID: Self
Trait Implementations§
Source§impl Clone for SvcParamKey
impl Clone for SvcParamKey
Source§fn clone(&self) -> SvcParamKey
fn clone(&self) -> SvcParamKey
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SvcParamKey
impl Debug for SvcParamKey
Source§impl Display for SvcParamKey
impl Display for SvcParamKey
Source§impl<'a> From<&'a SvcParamKey> for u16
impl<'a> From<&'a SvcParamKey> for u16
Source§fn from(value: &'a SvcParamKey) -> Self
fn from(value: &'a SvcParamKey) -> Self
Converts to this type from the input type.
Source§impl From<SvcParamKey> for u16
impl From<SvcParamKey> for u16
Source§fn from(value: SvcParamKey) -> Self
fn from(value: SvcParamKey) -> Self
Converts to this type from the input type.
Source§impl From<u16> for SvcParamKey
impl From<u16> for SvcParamKey
Source§impl FromStr for SvcParamKey
impl FromStr for SvcParamKey
Source§impl Hash for SvcParamKey
impl Hash for SvcParamKey
Source§impl Ord for SvcParamKey
impl Ord for SvcParamKey
Source§fn cmp(&self, other: &SvcParamKey) -> Ordering
fn cmp(&self, other: &SvcParamKey) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SvcParamKey
impl PartialEq for SvcParamKey
Source§impl PartialOrd for SvcParamKey
impl PartialOrd for SvcParamKey
Source§impl ZonefileFmt for SvcParamKey
impl ZonefileFmt for SvcParamKey
Source§fn fmt(&self, p: &mut impl Formatter) -> Result
fn fmt(&self, p: &mut impl Formatter) -> Result
Format the item as zonefile fmt into a
fmt::Formatter
Read moreSource§fn display_zonefile(
&self,
display_kind: DisplayKind,
) -> ZoneFileDisplay<'_, Self>
fn display_zonefile( &self, display_kind: DisplayKind, ) -> ZoneFileDisplay<'_, Self>
Display the item as a zonefile Read more
impl Copy for SvcParamKey
impl Eq for SvcParamKey
impl StructuralPartialEq for SvcParamKey
Auto Trait Implementations§
impl Freeze for SvcParamKey
impl RefUnwindSafe for SvcParamKey
impl Send for SvcParamKey
impl Sync for SvcParamKey
impl Unpin for SvcParamKey
impl UnwindSafe for SvcParamKey
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
type Error = <Target as OctetsFrom<Source>>::Error
Source§fn try_octets_into(
self,
) -> Result<Target, <Source as OctetsInto<Target>>::Error>
fn try_octets_into( self, ) -> Result<Target, <Source as OctetsInto<Target>>::Error>
Performs the conversion.
Source§fn octets_into(self) -> Target
fn octets_into(self) -> Target
Performs an infallible conversion.