Struct domain::rdata::rfc1035::Hinfo
[−]
[src]
pub struct Hinfo<C: AsRef<CharStr>> { /* fields omitted */ }
Hinfo record data.
Hinfo records are used to acquire general information about a host, specifically the CPU type and operating system type.
The Hinfo type is defined in RFC 1035, section 3.3.2.
Methods
impl<C: AsRef<CharStr>> Hinfo<C>
[src]
pub fn new(cpu: C, os: C) -> Self
[src]
Creates a new Hinfo record data from the components.
pub fn cpu(&self) -> &C
[src]
The CPU type of the host.
pub fn os(&self) -> &C
[src]
The operating system type of the host.
pub fn rtype() -> Rtype
[src]
impl Hinfo<CharStrBuf>
[src]
pub fn scan<S: Scanner>(
scanner: &mut S,
_origin: Option<&DNameSlice>
) -> ScanResult<Self>
[src]
scanner: &mut S,
_origin: Option<&DNameSlice>
) -> ScanResult<Self>
Trait Implementations
impl<C: Clone + AsRef<CharStr>> Clone for Hinfo<C>
[src]
fn clone(&self) -> Hinfo<C>
[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<C: Debug + AsRef<CharStr>> Debug for Hinfo<C>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<C: Eq + AsRef<CharStr>> Eq for Hinfo<C>
[src]
impl<C: Ord + AsRef<CharStr>> Ord for Hinfo<C>
[src]
fn cmp(&self, __arg_0: &Hinfo<C>) -> 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<C: PartialEq + AsRef<CharStr>> PartialEq for Hinfo<C>
[src]
fn eq(&self, __arg_0: &Hinfo<C>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Hinfo<C>) -> bool
[src]
This method tests for !=
.
impl<C: PartialOrd + AsRef<CharStr>> PartialOrd for Hinfo<C>
[src]
fn partial_cmp(&self, __arg_0: &Hinfo<C>) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &Hinfo<C>) -> bool
[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &Hinfo<C>) -> 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: &Hinfo<C>) -> bool
[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &Hinfo<C>) -> bool
[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl<S: AsRef<CharStr>> RecordData for Hinfo<S>
[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 Hinfo<&'a CharStr>
[src]
fn parse(rtype: Rtype, parser: &mut Parser<'a>) -> ParseResult<Option<Self>>
[src]
Parses the record data out of a parser. Read more