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
Poison

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

Dropped a task

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.