[−][src]Enum trust_dns_proto::rr::rdata::opt::EdnsOption
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]
pub fn len(&self) -> u16
[src]
Returns the length in bytes of the EdnsOption
pub fn is_empty(&self) -> bool
[src]
Returns true
if the length in bytes of the EdnsOption is 0
Trait Implementations
impl BinEncodable for EdnsOption
[src]
fn emit(&self, encoder: &mut BinEncoder) -> ProtoResult<()>
[src]
fn to_bytes(&self) -> ProtoResult<Vec<u8>>
[src]
Returns the object in binary form
impl Clone for EdnsOption
[src]
fn clone(&self) -> EdnsOption
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq<EdnsOption> for EdnsOption
[src]
fn eq(&self, other: &EdnsOption) -> bool
[src]
fn ne(&self, other: &EdnsOption) -> bool
[src]
impl PartialOrd<EdnsOption> for EdnsOption
[src]
fn partial_cmp(&self, other: &EdnsOption) -> Option<Ordering>
[src]
fn lt(&self, other: &EdnsOption) -> bool
[src]
fn le(&self, other: &EdnsOption) -> bool
[src]
fn gt(&self, other: &EdnsOption) -> bool
[src]
fn ge(&self, other: &EdnsOption) -> bool
[src]
impl Eq for EdnsOption
[src]
impl<'a> From<(EdnsCode, &'a [u8])> for EdnsOption
[src]
only the supported extensions are listed right now.
impl<'a> From<&'a EdnsOption> for Vec<u8>
[src]
fn from(value: &'a EdnsOption) -> Vec<u8>
[src]
impl<'a> From<&'a EdnsOption> for EdnsCode
[src]
fn from(value: &'a EdnsOption) -> EdnsCode
[src]
impl Debug for EdnsOption
[src]
impl Hash for EdnsOption
[src]
Auto Trait Implementations
impl Send for EdnsOption
impl Sync for EdnsOption
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,