Struct domain::rdata::rfc2782::Srv [−][src]
pub struct Srv<N: DName> { /* fields omitted */ }
Methods
impl<N: DName> Srv<N>
[src]
impl<N: DName> Srv<N>
pub fn new(priority: u16, weight: u16, port: u16, target: N) -> Self
[src]
pub fn new(priority: u16, weight: u16, port: u16, target: N) -> Self
pub fn priority(&self) -> u16
[src]
pub fn priority(&self) -> u16
pub fn weight(&self) -> u16
[src]
pub fn weight(&self) -> u16
pub fn port(&self) -> u16
[src]
pub fn port(&self) -> u16
pub fn target(&self) -> &N
[src]
pub fn target(&self) -> &N
impl Srv<DNameBuf>
[src]
impl Srv<DNameBuf>
pub fn scan<S: Scanner>(
scanner: &mut S,
origin: Option<&DNameSlice>
) -> ScanResult<Self>
[src]
pub fn scan<S: Scanner>(
scanner: &mut S,
origin: Option<&DNameSlice>
) -> ScanResult<Self>
Trait Implementations
impl<N: Clone + DName> Clone for Srv<N>
[src]
impl<N: Clone + DName> Clone for Srv<N>
fn clone(&self) -> Srv<N>
[src]
fn clone(&self) -> Srv<N>
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<N: Debug + DName> Debug for Srv<N>
[src]
impl<N: Debug + DName> Debug for Srv<N>
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<N: Eq + DName> Eq for Srv<N>
[src]
impl<N: Eq + DName> Eq for Srv<N>
impl<N: Ord + DName> Ord for Srv<N>
[src]
impl<N: Ord + DName> Ord for Srv<N>
fn cmp(&self, other: &Srv<N>) -> Ordering
[src]
fn cmp(&self, other: &Srv<N>) -> 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<N: PartialEq + DName> PartialEq for Srv<N>
[src]
impl<N: PartialEq + DName> PartialEq for Srv<N>
fn eq(&self, other: &Srv<N>) -> bool
[src]
fn eq(&self, other: &Srv<N>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Srv<N>) -> bool
[src]
fn ne(&self, other: &Srv<N>) -> bool
This method tests for !=
.
impl<N: PartialOrd + DName> PartialOrd for Srv<N>
[src]
impl<N: PartialOrd + DName> PartialOrd for Srv<N>
fn partial_cmp(&self, other: &Srv<N>) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Srv<N>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Srv<N>) -> bool
[src]
fn lt(&self, other: &Srv<N>) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Srv<N>) -> bool
[src]
fn le(&self, other: &Srv<N>) -> 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: &Srv<N>) -> bool
[src]
fn gt(&self, other: &Srv<N>) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Srv<N>) -> bool
[src]
fn ge(&self, other: &Srv<N>) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl<N: DName> RecordData for Srv<N>
[src]
impl<N: DName> RecordData for Srv<N>
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 Srv<ParsedDName<'a>>
[src]
impl<'a> ParsedRecordData<'a> for Srv<ParsedDName<'a>>
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<N: DName + Display> Display for Srv<N>
[src]
impl<N: DName + Display> Display for Srv<N>