pub enum ServiceEvent {
SearchStarted(String),
ServiceFound(String, String),
ServiceResolved(ServiceInfo),
ServiceRemoved(String, String),
SearchStopped(String),
}Expand description
All possible events sent to the client from the daemon regarding service discovery.
Variants§
SearchStarted(String)
Started searching for a service type.
ServiceFound(String, String)
Found a specific (service_type, fullname).
ServiceResolved(ServiceInfo)
Resolved a service instance with detailed info.
ServiceRemoved(String, String)
A service instance (service_type, fullname) was removed.
SearchStopped(String)
Stopped searching for a service type.
Trait Implementations§
Source§impl Clone for ServiceEvent
impl Clone for ServiceEvent
Source§fn clone(&self) -> ServiceEvent
fn clone(&self) -> ServiceEvent
Returns a duplicate of the value. Read more
1.0.0 · 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 ServiceEvent
impl RefUnwindSafe for ServiceEvent
impl Send for ServiceEvent
impl Sync for ServiceEvent
impl Unpin for ServiceEvent
impl UnwindSafe for ServiceEvent
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