[−][src]Struct lib3h_mdns::Builder
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 Sync for Builder
impl Unpin for Builder
impl Send for Builder
impl UnwindSafe for Builder
impl RefUnwindSafe for Builder
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,