pub enum ZeroconfError {
Bonjour(BonjourError),
Io(Error),
Timeout(Service),
InvalidServiceType(String),
InvalidTxtRecord(String),
NotFromBrowser(Service),
NullString(NulError),
Poison,
Utf8(Utf8Error),
InterfaceNotFound(String),
Dropped,
}
Expand description
Custom error holding any potential errors from publishing or browsing for services.
Variants§
Bonjour(BonjourError)
An error from the Bonjour API (BonjourError)
Io(Error)
An IO error on the internal socket used to poll for events
Timeout(Service)
A timeout occurred before the operation was complete
Contains the service that could not be resolved. This is only valid for resolve operations as browsing does not have a specific endpoint and so timing out is not an error.
InvalidServiceType(String)
The service type specified is invalid
InvalidTxtRecord(String)
The TXT record specified is invalid
NotFromBrowser(Service)
A service was passed to resolve that was not from a ServiceBrowser.
This is an error as the resolve operation requires the information about domain, interface and so on to be in the format provided from the browse operation.
NullString(NulError)
Null byte in a string conversion
Poison
Poisoned Mutex
Utf8(Utf8Error)
Failed to convert to a UTF-8 string
InterfaceNotFound(String)
Interface not found
Dropped
Dropped a task