[][src]Struct lib3h_mdns::record::MapRecord

pub struct MapRecord(_);

Type helper corresponding to the resource record of a host.

Methods

impl MapRecord[src]

pub fn new() -> Self[src]

pub fn with_record(networkid: &str, record: &[Record]) -> Self[src]

Creates a new MapRecord with one record.

pub fn update(&mut self, other_map_record: &MapRecord)[src]

Update the MapRecord's vectors of addresses.

pub fn from_dns_message(dmesg: &DnsMessage) -> Option<MapRecord>[src]

Builds a MapRecord from a DnsMessage.

pub fn to_dns_response_message(&self, networkids: &[&str]) -> Option<DnsMessage>[src]

Builds a DnsMessage from a MapRecord.

pub fn to_dns_message_query(&self, networkids: &[&str]) -> Option<DnsMessage>[src]

Builds a DnsMessage from a MapRecord.

Trait Implementations

impl Clone for MapRecord[src]

impl Debug for MapRecord[src]

impl Default for MapRecord[src]

impl Deref for MapRecord[src]

type Target = HashMapRecord

The resulting type after dereferencing.

impl DerefMut for MapRecord[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Clone for T where
    T: Clone
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,