Enum async_zeroconf::ZeroconfError [−][src]
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)
Tuple Fields of Bonjour
0: BonjourError
Io(Error)
An IO error on the internal socket used to poll for events
Tuple Fields of Io
0: Error
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.
Tuple Fields of Timeout
0: Service
InvalidServiceType(String)
The service type specified is invalid
Tuple Fields of InvalidServiceType
0: String
InvalidTxtRecord(String)
The TXT record specified is invalid
Tuple Fields of InvalidTxtRecord
0: String
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.
Tuple Fields of NotFromBrowser
0: Service
NullString(NulError)
Null byte in a string conversion
Tuple Fields of NullString
0: NulError
Poisoned Mutex
Utf8(Utf8Error)
Failed to convert to a UTF-8 string
Tuple Fields of Utf8
0: Utf8Error
InterfaceNotFound(String)
Interface not found
Tuple Fields of InterfaceNotFound
0: String
Dropped a task
Trait Implementations
Performs the conversion.
Performs the conversion.