pub enum What<P: Platform> {
    SockError(<<P as Platform>::Socket as Socket>::Error),
    FromBytes(MessageParseError),
    ToBytes(MessageToBytesError),
    HostInvalidUtf8(Utf8Error),
    HostInvalidIpAddress,
    MessageNeverAcked,
    ClockError,
    Timeout,
}
Expand description

A contextless error with some additional debug data attached.

Variants

SockError(<<P as Platform>::Socket as Socket>::Error)

Some socket operation (e.g. connecting to host) failed

FromBytes(MessageParseError)

Serializing a message from bytes failed

ToBytes(MessageToBytesError)

Serializing a message to bytes failed

HostInvalidUtf8(Utf8Error)

Uri-Host in request was not a utf8 string

HostInvalidIpAddress

Uri-Host in request was not a valid IPv4 address (TODO)

MessageNeverAcked

A CONfirmable message was sent many times without an ACKnowledgement.

ClockError

The clock failed to provide timing.

See embedded_time::clock::Error

Timeout

Something timed out

Trait Implementations

Formats the value using the given formatter. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

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.