#[repr(transparent)]pub struct EchConfigList(pub Vec<u8>);
Expand description
2. "SvcParam for ECH configuration"
The "ech" SvcParamKey is defined for conveying the ECH configuration
of an alternative endpoint. It is applicable to all TLS-based protocols
(including DTLS [RFC9147] and QUIC version 1 [RFC9001]) unless
otherwise specified.
In wire format, the value of the parameter is an ECHConfigList (Section 4 of draft-ietf-tls-esni-18),
including the redundant length prefix. In presentation format, the value is the ECHConfigList
in Base 64 Encoding (Section 4 of [RFC4648]). Base 64 is used here to simplify integration
with TLS server software. To enable simpler parsing, this SvcParam MUST NOT contain escape
sequences.
Tuple Fields§
§0: Vec<u8>
Trait Implementations§
Source§impl<'r> BinDecodable<'r> for EchConfigList
impl<'r> BinDecodable<'r> for EchConfigList
Source§fn read(decoder: &mut BinDecoder<'r>) -> Result<Self, ProtoError>
fn read(decoder: &mut BinDecoder<'r>) -> Result<Self, ProtoError>
In wire format, the value of the parameter is an ECHConfigList (Section 4 of draft-ietf-tls-esni-18), including the redundant length prefix. In presentation format, the value is the ECHConfigList in Base 64 Encoding (Section 4 of RFC4648). Base 64 is used here to simplify integration with TLS server software. To enable simpler parsing, this SvcParam MUST NOT contain escape sequences.
Source§fn from_bytes(bytes: &'r [u8]) -> Result<Self, ProtoError>
fn from_bytes(bytes: &'r [u8]) -> Result<Self, ProtoError>
Source§impl BinEncodable for EchConfigList
impl BinEncodable for EchConfigList
Source§fn emit(&self, encoder: &mut BinEncoder<'_>) -> Result<(), ProtoError>
fn emit(&self, encoder: &mut BinEncoder<'_>) -> Result<(), ProtoError>
In wire format, the value of the parameter is an ECHConfigList (Section 4 of draft-ietf-tls-esni-18), including the redundant length prefix. In presentation format, the value is the ECHConfigList in Base 64 Encoding (Section 4 of RFC4648). Base 64 is used here to simplify integration with TLS server software. To enable simpler parsing, this SvcParam MUST NOT contain escape sequences.
Source§impl Clone for EchConfigList
impl Clone for EchConfigList
Source§fn clone(&self) -> EchConfigList
fn clone(&self) -> EchConfigList
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for EchConfigList
impl Debug for EchConfigList
Source§impl<'de> Deserialize<'de> for EchConfigList
impl<'de> Deserialize<'de> for EchConfigList
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Display for EchConfigList
impl Display for EchConfigList
Source§fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>
fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>
As the documentation states, the presentation format (what this function outputs) must be a BASE64 encoded string. hickory-dns will encode to BASE64 during formatting of the internal data, and output the BASE64 value.
In presentation format, the value is the ECHConfigList in Base 64 Encoding
(Section 4 of [RFC4648]). Base 64 is used here to simplify integration with
TLS server software. To enable simpler parsing, this SvcParam MUST NOT
contain escape sequences.
Source§impl Hash for EchConfigList
impl Hash for EchConfigList
Source§impl PartialEq for EchConfigList
impl PartialEq for EchConfigList
Source§impl Serialize for EchConfigList
impl Serialize for EchConfigList
impl Eq for EchConfigList
impl StructuralPartialEq for EchConfigList
Auto Trait Implementations§
impl Freeze for EchConfigList
impl RefUnwindSafe for EchConfigList
impl Send for EchConfigList
impl Sync for EchConfigList
impl Unpin for EchConfigList
impl UnwindSafe for EchConfigList
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.