pub enum DiscoveryEvent {
ServiceFound(DiscoveryServiceDetails),
ServiceLost(String),
DiscoveryStarted,
DiscoveryStopped,
}Expand description
Represents various events that occur during the service discovery process.
Variants§
ServiceFound(DiscoveryServiceDetails)
A new service has been found, or an existing service’s information has been updated. Contains the details of the discovered or updated service.
ServiceLost(String)
A service has gone offline or become unavailable.
The String parameter is the full instance name of the lost service.
DiscoveryStarted
The service discovery process has successfully started.
DiscoveryStopped
The service discovery process has stopped.
Trait Implementations§
Source§impl Clone for DiscoveryEvent
impl Clone for DiscoveryEvent
Source§fn clone(&self) -> DiscoveryEvent
fn clone(&self) -> DiscoveryEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DiscoveryEvent
impl RefUnwindSafe for DiscoveryEvent
impl Send for DiscoveryEvent
impl Sync for DiscoveryEvent
impl Unpin for DiscoveryEvent
impl UnsafeUnpin for DiscoveryEvent
impl UnwindSafe for DiscoveryEvent
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