Struct domain::rdata::rfc1035::Null
[−]
[src]
pub struct Null<D: AsRef<[u8]>> { /* fields omitted */ }
Null record data.
Null records can contain whatever data. They are experimental and not allowed in master files.
The Null record type is defined in RFC 1035, section 3.3.10.
Methods
impl<D: AsRef<[u8]>> Null<D>
[src]
pub fn new(data: D) -> Self
[src]
Creates new, empty owned Null record data.
pub fn data(&self) -> &[u8]
[src]
The raw content of the record.
Trait Implementations
impl<D: Clone + AsRef<[u8]>> Clone for Null<D>
[src]
fn clone(&self) -> Null<D>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<D: Debug + AsRef<[u8]>> Debug for Null<D>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<D: Eq + AsRef<[u8]>> Eq for Null<D>
[src]
impl<D: Ord + AsRef<[u8]>> Ord for Null<D>
[src]
fn cmp(&self, __arg_0: &Null<D>) -> Ordering
[src]
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
impl<D: PartialEq + AsRef<[u8]>> PartialEq for Null<D>
[src]
fn eq(&self, __arg_0: &Null<D>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Null<D>) -> bool
[src]
This method tests for !=
.
impl<D: PartialOrd + AsRef<[u8]>> PartialOrd for Null<D>
[src]
fn partial_cmp(&self, __arg_0: &Null<D>) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &Null<D>) -> bool
[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &Null<D>) -> bool
[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &Null<D>) -> bool
[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &Null<D>) -> bool
[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl<D: AsRef<[u8]>> RecordData for Null<D>
[src]
fn rtype(&self) -> Rtype
[src]
Returns the record type for this record data instance. Read more
fn compose<C: AsMut<Composer>>(&self, target: C) -> ComposeResult<()>
[src]
Appends the record data to the end of a composer.
impl<'a> ParsedRecordData<'a> for Null<&'a [u8]>
[src]
fn parse(rtype: Rtype, parser: &mut Parser<'a>) -> ParseResult<Option<Self>>
[src]
Parses the record data out of a parser. Read more