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: BonjourErrorIo(Error)An IO error on the internal socket used to poll for events
Tuple Fields of Io
0: ErrorTimeout(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: ServiceInvalidServiceType(String)The service type specified is invalid
Tuple Fields of InvalidServiceType
0: StringInvalidTxtRecord(String)The TXT record specified is invalid
Tuple Fields of InvalidTxtRecord
0: StringNotFromBrowser(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: ServiceNullString(NulError)Null byte in a string conversion
Tuple Fields of NullString
0: NulErrorPoisoned Mutex
Utf8(Utf8Error)Failed to convert to a UTF-8 string
Tuple Fields of Utf8
0: Utf8ErrorInterfaceNotFound(String)Interface not found
Tuple Fields of InterfaceNotFound
0: StringDropped a task
Trait Implementations
Performs the conversion.
Performs the conversion.