#[non_exhaustive]pub enum HostnameResolutionEvent {
SearchStarted(String),
AddressesFound(String, HashSet<IpAddr>),
AddressesRemoved(String, HashSet<IpAddr>),
SearchTimeout(String),
SearchStopped(String),
}Expand description
All possible events sent to the client from the daemon regarding host resolution.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SearchStarted(String)
Started searching for the ip address of a hostname.
AddressesFound(String, HashSet<IpAddr>)
One or more addresses for a hostname has been found.
AddressesRemoved(String, HashSet<IpAddr>)
One or more addresses for a hostname has been removed.
SearchTimeout(String)
The search for the ip address of a hostname has timed out.
SearchStopped(String)
Stopped searching for the ip address of a hostname.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HostnameResolutionEvent
impl RefUnwindSafe for HostnameResolutionEvent
impl Send for HostnameResolutionEvent
impl Sync for HostnameResolutionEvent
impl Unpin for HostnameResolutionEvent
impl UnwindSafe for HostnameResolutionEvent
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