pub enum SvcbParamKey {
Mandatory,
Alpn,
NoDefaultAlpn,
Port,
Ipv4Hint,
Ech,
Ipv6Hint,
DohPath,
Int(u16),
}
Variants§
Mandatory
Alpn
NoDefaultAlpn
Port
Ipv4Hint
Ech
Ipv6Hint
DohPath
Int(u16)
A raw value given through its integer.
Implementations§
source§impl SvcbParamKey
impl SvcbParamKey
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.
Trait Implementations§
source§impl Clone for SvcbParamKey
impl Clone for SvcbParamKey
source§fn clone(&self) -> SvcbParamKey
fn clone(&self) -> SvcbParamKey
Returns a copy 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 Compose for SvcbParamKey
impl Compose for SvcbParamKey
source§impl Debug for SvcbParamKey
impl Debug for SvcbParamKey
source§impl Display for SvcbParamKey
impl Display for SvcbParamKey
source§impl<'a> From<&'a SvcbParamKey> for u16
impl<'a> From<&'a SvcbParamKey> for u16
source§fn from(value: &'a SvcbParamKey) -> Self
fn from(value: &'a SvcbParamKey) -> Self
Converts to this type from the input type.
source§impl From<SvcbParamKey> for u16
impl From<SvcbParamKey> for u16
source§fn from(value: SvcbParamKey) -> Self
fn from(value: SvcbParamKey) -> Self
Converts to this type from the input type.
source§impl From<u16> for SvcbParamKey
impl From<u16> for SvcbParamKey
source§impl Hash for SvcbParamKey
impl Hash for SvcbParamKey
source§impl Ord for SvcbParamKey
impl Ord for SvcbParamKey
source§impl PartialEq<SvcbParamKey> for SvcbParamKey
impl PartialEq<SvcbParamKey> for SvcbParamKey
source§impl PartialEq<SvcbParamKey> for u16
impl PartialEq<SvcbParamKey> for u16
source§fn eq(&self, other: &SvcbParamKey) -> bool
fn eq(&self, other: &SvcbParamKey) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<u16> for SvcbParamKey
impl PartialEq<u16> for SvcbParamKey
source§impl PartialOrd<SvcbParamKey> for SvcbParamKey
impl PartialOrd<SvcbParamKey> for SvcbParamKey
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd<SvcbParamKey> for u16
impl PartialOrd<SvcbParamKey> for u16
source§fn partial_cmp(&self, other: &SvcbParamKey) -> Option<Ordering>
fn partial_cmp(&self, other: &SvcbParamKey) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd<u16> for SvcbParamKey
impl PartialOrd<u16> for SvcbParamKey
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for SvcbParamKey
impl Eq for SvcbParamKey
Auto Trait Implementations§
impl RefUnwindSafe for SvcbParamKey
impl Send for SvcbParamKey
impl Sync for SvcbParamKey
impl Unpin for SvcbParamKey
impl UnwindSafe for SvcbParamKey
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<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere Target: OctetsFrom<Source>,
source§fn octets_into(self) -> Result<Target, ShortBuf>
fn octets_into(self) -> Result<Target, ShortBuf>
Performs the conversion.