[][src]Struct lib3h_mdns::builder::MulticastDnsBuilder

pub struct MulticastDnsBuilder { /* fields omitted */ }

mdns builder

Methods

impl MulticastDnsBuilder[src]

pub fn new() -> Self[src]

Create a new mDNS builder

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

Create a new mDNS instance with a defined own record.

pub fn bind_address(&mut self, addr: &str) -> &mut Self[src]

specify the network interface to bind to

pub fn bind_port(&mut self, port: u16) -> &mut Self[src]

specify the udp port to listen on

pub fn multicast_loop(&mut self, should_loop: bool) -> &mut Self[src]

should we loop broadcasts back to self?

pub fn multicast_ttl(&mut self, ttl: u32) -> &mut Self[src]

set the multicast ttl

pub fn multicast_address(&mut self, addr: &str) -> &mut Self[src]

set the multicast address

pub fn query_interval_ms(&mut self, every_ms: u128) -> &mut Self[src]

Sets the amount of time between two queries originating from ourself.

pub fn own_record(&mut self, networkid: &str, urls: &[&str]) -> &mut Self[src]

Set the host's record.

pub fn build(&mut self) -> Result<MulticastDns, MulticastDnsError>[src]

construct the actual mdns struct

Trait Implementations

impl Default for MulticastDnsBuilder[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> 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, 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>,