Struct domain::rdata::rfc1035::Wks[][src]

pub struct Wks<B: AsRef<WksBitmap>> { /* fields omitted */ }

Wks record data.

Wks records describe the well-known services supported by a particular protocol on a particular internet address.

The Wks record type is defined in RFC 1035, section 3.4.2.

Methods

impl<B: AsRef<WksBitmap>> Wks<B>
[src]

Creates a new record data from components.

The IPv4 address of the host this record refers to.

The protocol number of the protocol this record refers to.

This will typically be 6 for TCP or 17 for UDP.

A bitmap indicating the ports where service is being provided.

Returns whether a certain service is being provided.

Important traits for WksIter<'a>

Returns an iterator over the served ports.

impl Wks<WksBitmapBuf>
[src]

Trait Implementations

impl<B: Clone + AsRef<WksBitmap>> Clone for Wks<B>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<B: Debug + AsRef<WksBitmap>> Debug for Wks<B>
[src]

Formats the value using the given formatter. Read more

impl<B: Eq + AsRef<WksBitmap>> Eq for Wks<B>
[src]

impl<B: PartialEq + AsRef<WksBitmap>> PartialEq for Wks<B>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<B: AsRef<WksBitmap>> RecordData for Wks<B>
[src]

Returns the record type for this record data instance. Read more

Appends the record data to the end of a composer.

impl<'a> ParsedRecordData<'a> for Wks<&'a WksBitmap>
[src]

Parses the record data out of a parser. Read more

impl<B: AsRef<WksBitmap>> Display for Wks<B>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<B> Send for Wks<B> where
    B: Send

impl<B> Sync for Wks<B> where
    B: Sync