Enum async_zeroconf::Interface [−][src]
pub enum Interface {
Unspecified,
Interface(u32),
}
Expand description
Enum to hold the Interface a service should be advertised on.
Variants
Advertise on all interfaces
Advertise on specified interface, e.g. as obtained by if_nametoindex(3)
Tuple Fields of Interface
0: u32
Implementations
Create an Interface
instance from an interface name.
Examples
let interface = async_zeroconf::Interface::from_ifname("lo0")?;
println!("{:?}", interface);
let service_ref = async_zeroconf::Service::new("Server", "_http._tcp", 80)
.set_interface(interface)
.publish()?;
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Interface
impl UnwindSafe for Interface
Blanket Implementations
Mutably borrows from an owned value. Read more