[][src]Struct lib3h_mdns::Builder

pub struct Builder { /* fields omitted */ }

mdns builder

Methods

impl Builder[src]

pub fn new() -> Self[src]

create a new mdns builder

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

specify the network interface to bind to

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

specify the udp port to listen on

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

should we loop broadcasts back to self?

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

set the multicast ttl

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

set the multicast address

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

construct the actual mdns struct

Auto Trait Implementations

impl Unpin for Builder

impl Send for Builder

impl Sync for Builder

impl UnwindSafe for Builder

impl RefUnwindSafe for Builder

Blanket Implementations

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

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

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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