pub enum SvcParam {
Mandatory(Vec<u16>),
Alpn(Vec<String>),
NoDefaultAlpn,
Port(u16),
Ipv4Hint(Vec<Ipv4Addr>),
Ech(Vec<u8>),
Ipv6Hint(Vec<Ipv6Addr>),
Unknown {
key: u16,
value: Vec<u8>,
},
}Expand description
A single service parameter from SVCB/HTTPS records.
Variants§
Mandatory(Vec<u16>)
Mandatory keys that must be understood.
Alpn(Vec<String>)
Application-Layer Protocol Negotiation.
NoDefaultAlpn
No default ALPN (empty value).
Port(u16)
Port number.
Ipv4Hint(Vec<Ipv4Addr>)
IPv4 address hints.
Ech(Vec<u8>)
Encrypted Client Hello.
Ipv6Hint(Vec<Ipv6Addr>)
IPv6 address hints.
Unknown
Unknown parameter.
Implementations§
Trait Implementations§
impl StructuralPartialEq for SvcParam
Auto Trait Implementations§
impl Freeze for SvcParam
impl RefUnwindSafe for SvcParam
impl Send for SvcParam
impl Sync for SvcParam
impl Unpin for SvcParam
impl UnsafeUnpin for SvcParam
impl UnwindSafe for SvcParam
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