pub enum ServiceParameter {
MANDATORY {
key_ids: Vec<u16>,
},
ALPN {
alpn_ids: Vec<String>,
},
NO_DEFAULT_ALPN,
PORT {
port: u16,
},
IPV4_HINT {
hints: Vec<Ipv4Addr>,
},
ECH {
config_list: Vec<u8>,
},
IPV6_HINT {
hints: Vec<Ipv6Addr>,
},
PRIVATE {
number: u16,
wire_data: Vec<u8>,
},
KEY_65535,
}
Variants§
MANDATORY
Mandatory keys in this resource record (service mode only)
Fields
ALPN
Additional supported protocols
Fields
NO_DEFAULT_ALPN
No support for default protocol
When this is specified in a resource record, ALPN
must also be specified in order to be
“self-consistent”.
PORT
Port for alternative endpoint
IPV4_HINT
IPv4 address hints
ECH
Encrypted ClientHello information (RFC Section 9)
This conveys the ECH configuration of an alternative endpoint.
IPV6_HINT
IPv6 address hints
PRIVATE
Private use keys 65280-65534
KEY_65535
Reserved (“Invalid key”)
Implementations§
Source§impl ServiceParameter
impl ServiceParameter
pub fn get_registered_number(&self) -> u16
Trait Implementations§
Source§impl Clone for ServiceParameter
impl Clone for ServiceParameter
Source§fn clone(&self) -> ServiceParameter
fn clone(&self) -> ServiceParameter
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 ServiceParameter
impl Debug for ServiceParameter
Source§impl Display for ServiceParameter
impl Display for ServiceParameter
Source§impl Hash for ServiceParameter
impl Hash for ServiceParameter
Source§impl Ord for ServiceParameter
impl Ord for ServiceParameter
Source§impl PartialEq for ServiceParameter
impl PartialEq for ServiceParameter
Source§impl PartialOrd for ServiceParameter
impl PartialOrd for ServiceParameter
impl Eq for ServiceParameter
Auto Trait Implementations§
impl Freeze for ServiceParameter
impl RefUnwindSafe for ServiceParameter
impl Send for ServiceParameter
impl Sync for ServiceParameter
impl Unpin for ServiceParameter
impl UnwindSafe for ServiceParameter
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