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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more