Enum trust_dns_proto::rr::rdata::svcb::SvcParamKey[][src]

pub enum SvcParamKey {
    Mandatory,
    Alpn,
    NoDefaultAlpn,
    Port,
    Ipv4Hint,
    EchConfig,
    Ipv6Hint,
    Key(u16),
    Key65535,
    Unknown(u16),
}
14.3.2.  Initial contents

  The "Service Binding (SVCB) Parameter Registry" shall initially be
  populated with the registrations below:

  +=============+=================+======================+===========+
  | Number      | Name            | Meaning              | Reference |
  +=============+=================+======================+===========+
  | 0           | mandatory       | Mandatory keys in    | (This     |
  |             |                 | this RR              | document) |
  +-------------+-----------------+----------------------+-----------+
  | 1           | alpn            | Additional supported | (This     |
  |             |                 | protocols            | document) |
  +-------------+-----------------+----------------------+-----------+
  | 2           | no-default-alpn | No support for       | (This     |
  |             |                 | default protocol     | document) |
  +-------------+-----------------+----------------------+-----------+
  | 3           | port            | Port for alternative | (This     |
  |             |                 | endpoint             | document) |
  +-------------+-----------------+----------------------+-----------+
  | 4           | ipv4hint        | IPv4 address hints   | (This     |
  |             |                 |                      | document) |
  +-------------+-----------------+----------------------+-----------+
  | 5           | echconfig       | Encrypted            | (This     |
  |             |                 | ClientHello info     | document) |
  +-------------+-----------------+----------------------+-----------+
  | 6           | ipv6hint        | IPv6 address hints   | (This     |
  |             |                 |                      | document) |
  +-------------+-----------------+----------------------+-----------+
  | 65280-65534 | keyNNNNN        | Private Use          | (This     |
  |             |                 |                      | document) |
  +-------------+-----------------+----------------------+-----------+
  | 65535       | key65535        | Reserved ("Invalid   | (This     |
  |             |                 | key")                | document) |
  +-------------+-----------------+----------------------+-----------+

parsing done via:
  *  a 2 octet field containing the SvcParamKey as an integer in
     network byte order.  (See Section 14.3.2 for the defined values.)

Variants

Mandatory

Mandatory keys in this RR

Alpn

Additional supported protocols

NoDefaultAlpn

No support for default protocol

Port

Port for alternative endpoint

Ipv4Hint

IPv4 address hints

EchConfig

Encrypted ClientHello info

Ipv6Hint

IPv6 address hints

Key(u16)

Private Use

Key65535

Reserved (“Invalid key”)

Unknown(u16)

Unknown

Trait Implementations

impl<'r> BinDecodable<'r> for SvcParamKey[src]

impl BinEncodable for SvcParamKey[src]

impl Clone for SvcParamKey[src]

impl Copy for SvcParamKey[src]

impl Debug for SvcParamKey[src]

impl Display for SvcParamKey[src]

impl Eq for SvcParamKey[src]

impl From<u16> for SvcParamKey[src]

impl FromStr for SvcParamKey[src]

type Err = ProtoError

The associated error which can be returned from parsing.

impl Hash for SvcParamKey[src]

impl Ord for SvcParamKey[src]

impl PartialEq<SvcParamKey> for SvcParamKey[src]

impl PartialOrd<SvcParamKey> for SvcParamKey[src]

impl StructuralEq for SvcParamKey[src]

impl StructuralPartialEq for SvcParamKey[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,