[−][src]Struct lib3h_mdns::record::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.
fn deref(&self) -> &Self::Target
[src]
impl DerefMut for MapRecord
[src]
Auto Trait Implementations
impl RefUnwindSafe for MapRecord
impl Send for MapRecord
impl Sync for MapRecord
impl Unpin for MapRecord
impl UnwindSafe for MapRecord
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Clone for T where
T: Clone,
[src]
T: Clone,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,