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),
}
Expand description
Custom error holding any potential errors from publishing or browsing for services.
Variants
An error from the Bonjour API (BonjourError)
Tuple Fields of Bonjour
0: BonjourError
An IO error on the internal socket used to poll for events
Tuple Fields of Io
0: Error
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
The service type specified is invalid
Tuple Fields of InvalidServiceType
0: String
The TXT record specified is invalid
Tuple Fields of InvalidTxtRecord
0: String
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
Null byte in a string conversion
Tuple Fields of NullString
0: NulError
Poisoned Mutex
Tuple Fields of Poison
Failed to convert to a UTF-8 string
Tuple Fields of Utf8
0: Utf8Error
Interface not found
Tuple Fields of InterfaceNotFound
0: String
Trait Implementations
Performs the conversion.
Performs the conversion.