pub struct Discovery { /* private fields */ }Expand description
Device discovery service.
A service for identifying and registering all tosca devices within
a network.
Implementations§
Source§impl Discovery
impl Discovery
Sourcepub const fn timeout(self, timeout: Duration) -> Self
pub const fn timeout(self, timeout: Duration) -> Self
Sets the service timeout.
The entire discovery process will last for the given timeout value.
Sourcepub const fn transport_protocol(
self,
transport_protocol: TransportProtocol,
) -> Self
pub const fn transport_protocol( self, transport_protocol: TransportProtocol, ) -> Self
Sets the service transport protocol.
Sourcepub fn domain(self, domain: impl Into<Cow<'static, str>>) -> Self
pub fn domain(self, domain: impl Into<Cow<'static, str>>) -> Self
Sets the service domain.
The domain searched by the service. i.e. tosca
Sourcepub fn top_level_domain(
self,
top_level_domain: impl Into<Cow<'static, str>>,
) -> Self
pub fn top_level_domain( self, top_level_domain: impl Into<Cow<'static, str>>, ) -> Self
Sets the service top-level domain.
A common top-level domain is .local.
Sourcepub const fn disable_ipv6(self) -> Self
pub const fn disable_ipv6(self) -> Self
Excludes devices with IPv6 interfaces from the discovery service.
Sourcepub fn disable_ip(self, ip: impl Into<IpAddr>) -> Self
pub fn disable_ip(self, ip: impl Into<IpAddr>) -> Self
Excludes the device with the given IP from the discovery service.
Sourcepub const fn disable_network_interface(
self,
network_interface: &'static str,
) -> Self
pub const fn disable_network_interface( self, network_interface: &'static str, ) -> Self
Disables the given network interface from the discovery service.
Trait Implementations§
impl StructuralPartialEq for Discovery
Auto Trait Implementations§
impl Freeze for Discovery
impl RefUnwindSafe for Discovery
impl Send for Discovery
impl Sync for Discovery
impl Unpin for Discovery
impl UnwindSafe for Discovery
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more