Enum trust_dns_proto::rr::rdata::opt::EdnsOption [−][src]
options used to pass information about capabilities between client and server
note: Not all EdnsOptions are supported at this time.
http://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-13
Variants
Unknown(u16, Vec<u8>)
Unknown, used to deal with unknown or unsupported codes
Methods
impl EdnsOption
[src]
impl EdnsOption
pub fn len(&self) -> u16
[src]
pub fn len(&self) -> u16
Returns the length in bytes of the EdnsOption
pub fn is_empty(&self) -> bool
[src]
pub fn is_empty(&self) -> bool
Returns true
if the length in bytes of the EdnsOption is 0
Trait Implementations
impl Debug for EdnsOption
[src]
impl Debug for EdnsOption
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialOrd for EdnsOption
[src]
impl PartialOrd for EdnsOption
fn partial_cmp(&self, other: &EdnsOption) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &EdnsOption) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &EdnsOption) -> bool
[src]
fn lt(&self, other: &EdnsOption) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &EdnsOption) -> bool
[src]
fn le(&self, other: &EdnsOption) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &EdnsOption) -> bool
[src]
fn gt(&self, other: &EdnsOption) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &EdnsOption) -> bool
[src]
fn ge(&self, other: &EdnsOption) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl PartialEq for EdnsOption
[src]
impl PartialEq for EdnsOption
fn eq(&self, other: &EdnsOption) -> bool
[src]
fn eq(&self, other: &EdnsOption) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &EdnsOption) -> bool
[src]
fn ne(&self, other: &EdnsOption) -> bool
This method tests for !=
.
impl Eq for EdnsOption
[src]
impl Eq for EdnsOption
impl Clone for EdnsOption
[src]
impl Clone for EdnsOption
fn clone(&self) -> EdnsOption
[src]
fn clone(&self) -> EdnsOption
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Hash for EdnsOption
[src]
impl Hash for EdnsOption
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl BinEncodable for EdnsOption
[src]
impl BinEncodable for EdnsOption
fn emit(&self, encoder: &mut BinEncoder) -> ProtoResult<()>
[src]
fn emit(&self, encoder: &mut BinEncoder) -> ProtoResult<()>
Write the type to the stream
fn to_bytes(&self) -> ProtoResult<Vec<u8>>
[src]
fn to_bytes(&self) -> ProtoResult<Vec<u8>>
Returns the object in binary form
impl<'a> From<(EdnsCode, &'a [u8])> for EdnsOption
[src]
impl<'a> From<(EdnsCode, &'a [u8])> for EdnsOption
only the supported extensions are listed right now.
impl<'a> From<&'a EdnsOption> for Vec<u8>
[src]
impl<'a> From<&'a EdnsOption> for Vec<u8>
fn from(value: &'a EdnsOption) -> Vec<u8>
[src]
fn from(value: &'a EdnsOption) -> Vec<u8>
Performs the conversion.
impl<'a> From<&'a EdnsOption> for EdnsCode
[src]
impl<'a> From<&'a EdnsOption> for EdnsCode
fn from(value: &'a EdnsOption) -> EdnsCode
[src]
fn from(value: &'a EdnsOption) -> EdnsCode
Performs the conversion.
Auto Trait Implementations
impl Send for EdnsOption
impl Send for EdnsOption
impl Sync for EdnsOption
impl Sync for EdnsOption