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.
Timeout
Something timed out
Trait Implementations
Auto Trait Implementations
impl<P> RefUnwindSafe for What<P> where
<<P as Platform>::Socket as Socket>::Error: RefUnwindSafe,
impl<P> Send for What<P> where
<<P as Platform>::Socket as Socket>::Error: Send,
impl<P> Sync for What<P> where
<<P as Platform>::Socket as Socket>::Error: Sync,
impl<P> Unpin for What<P> where
<<P as Platform>::Socket as Socket>::Error: Unpin,
impl<P> UnwindSafe for What<P> where
<<P as Platform>::Socket as Socket>::Error: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more