Struct domain::rdata::rfc1035::Null [−][src]
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]
impl<D: AsRef<[u8]>> Null<D>
pub fn new(data: D) -> Self
[src]
pub fn new(data: D) -> Self
Creates new, empty owned Null record data.
pub fn data(&self) -> &[u8]
[src]
pub fn data(&self) -> &[u8]
The raw content of the record.
Trait Implementations
impl<D: Clone + AsRef<[u8]>> Clone for Null<D>
[src]
impl<D: Clone + AsRef<[u8]>> Clone for Null<D>
fn clone(&self) -> Null<D>
[src]
fn clone(&self) -> Null<D>
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<D: Debug + AsRef<[u8]>> Debug for Null<D>
[src]
impl<D: Debug + AsRef<[u8]>> Debug for Null<D>
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<D: Eq + AsRef<[u8]>> Eq for Null<D>
[src]
impl<D: Eq + AsRef<[u8]>> Eq for Null<D>
impl<D: Ord + AsRef<[u8]>> Ord for Null<D>
[src]
impl<D: Ord + AsRef<[u8]>> Ord for Null<D>
fn cmp(&self, other: &Null<D>) -> Ordering
[src]
fn cmp(&self, other: &Null<D>) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl<D: PartialEq + AsRef<[u8]>> PartialEq for Null<D>
[src]
impl<D: PartialEq + AsRef<[u8]>> PartialEq for Null<D>
fn eq(&self, other: &Null<D>) -> bool
[src]
fn eq(&self, other: &Null<D>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Null<D>) -> bool
[src]
fn ne(&self, other: &Null<D>) -> bool
This method tests for !=
.
impl<D: PartialOrd + AsRef<[u8]>> PartialOrd for Null<D>
[src]
impl<D: PartialOrd + AsRef<[u8]>> PartialOrd for Null<D>
fn partial_cmp(&self, other: &Null<D>) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Null<D>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Null<D>) -> bool
[src]
fn lt(&self, other: &Null<D>) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Null<D>) -> bool
[src]
fn le(&self, other: &Null<D>) -> 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: &Null<D>) -> bool
[src]
fn gt(&self, other: &Null<D>) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Null<D>) -> bool
[src]
fn ge(&self, other: &Null<D>) -> bool
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]
impl<D: AsRef<[u8]>> RecordData for Null<D>
fn rtype(&self) -> Rtype
[src]
fn rtype(&self) -> Rtype
Returns the record type for this record data instance. Read more
fn compose<C: AsMut<Composer>>(&self, target: C) -> ComposeResult<()>
[src]
fn compose<C: AsMut<Composer>>(&self, target: C) -> ComposeResult<()>
Appends the record data to the end of a composer.
impl<'a> ParsedRecordData<'a> for Null<&'a [u8]>
[src]
impl<'a> ParsedRecordData<'a> for Null<&'a [u8]>
fn parse(rtype: Rtype, parser: &mut Parser<'a>) -> ParseResult<Option<Self>>
[src]
fn parse(rtype: Rtype, parser: &mut Parser<'a>) -> ParseResult<Option<Self>>
Parses the record data out of a parser. Read more
impl<D: AsRef<[u8]>> Display for Null<D>
[src]
impl<D: AsRef<[u8]>> Display for Null<D>