#[repr(transparent)]pub struct Unknown(pub Vec<u8>);
Expand description
draft-ietf-dnsop-svcb-https-03 SVCB and HTTPS RRs for DNS, February 2021
Unrecognized keys are represented in presentation format as
"keyNNNNN" where NNNNN is the numeric value of the key type without
leading zeros. A SvcParam in this form SHALL be parsed as specified
above, and the decoded "value" SHALL be used as its wire format
encoding.
For some SvcParamKeys, the "value" corresponds to a list or set of
items. Presentation formats for such keys SHOULD use a comma-
separated list (Appendix A.1).
SvcParams in presentation format MAY appear in any order, but keys
MUST NOT be repeated.
Tuple Fields§
§0: Vec<u8>
Trait Implementations§
source§impl<'r> BinDecodable<'r> for Unknown
impl<'r> BinDecodable<'r> for Unknown
source§fn read(decoder: &mut BinDecoder<'r>) -> ProtoResult<Self>
fn read(decoder: &mut BinDecoder<'r>) -> ProtoResult<Self>
Read the type from the stream
source§fn from_bytes(bytes: &'r [u8]) -> ProtoResult<Self>
fn from_bytes(bytes: &'r [u8]) -> ProtoResult<Self>
Returns the object in binary form
source§impl BinEncodable for Unknown
impl BinEncodable for Unknown
source§fn emit(&self, encoder: &mut BinEncoder<'_>) -> ProtoResult<()>
fn emit(&self, encoder: &mut BinEncoder<'_>) -> ProtoResult<()>
Write the type to the stream
source§impl<'de> Deserialize<'de> for Unknown
impl<'de> Deserialize<'de> for Unknown
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for Unknown
impl PartialEq for Unknown
impl Eq for Unknown
impl StructuralEq for Unknown
impl StructuralPartialEq for Unknown
Auto Trait Implementations§
impl RefUnwindSafe for Unknown
impl Send for Unknown
impl Sync for Unknown
impl Unpin for Unknown
impl UnwindSafe for Unknown
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.