[][src]Enum async_coap::Error

pub enum Error {
    InvalidArgument,
    OutOfSpace,
    ParseFailure,
    ResponseTimeout,
    BadResponse,
    UnknownMessageCode,
    UnhandledCriticalOption,
    IOError,
    Cancelled,
    HostNotFound,
    HostLookupFailure,
    ResourceNotFound,
    Unauthorized,
    Forbidden,
    ClientRequestError,
    ServerError,
    Reset,
    OptionNotRepeatable,
    UnsupportedUriScheme,
    Unspecified,
}

Type for errors encountered while sending or receiving CoAP requests and responses.

Variants

InvalidArgument

One or more of the supplied arguments are not valid for the given operation.

OutOfSpace

There is not enough space in the given buffer to complete the operation.

ParseFailure

An error was encountered while attempting to parse the data.

ResponseTimeout

Operation timed out waiting for a response.

BadResponse

The response was well-formed, but not appropriate for the given request.

UnknownMessageCode

The [message code][async-coap::message::MsgCode] was not recognized by this version of rust-async-coap.

UnhandledCriticalOption

A critical option present in the message was not supported.

IOError

An I/O error occurred while performing this operation.

Cancelled

This operation has been cancelled.

HostNotFound

Unable to look up the given host because it was not found.

HostLookupFailure

Unable to look up the given host for an unspecified reason.

ResourceNotFound

The response indicated that the given resource was not found.

Unauthorized

The response indicated that the request was unauthorized.

Forbidden

The response indicated that the request was forbidden.

ClientRequestError

The response indicated an unspecified client error.

ServerError

The response indicated an unspecified server error.

Reset

The transaction was reset.

OptionNotRepeatable

More than one instance of an option marked as non-repeatable was encountered.

UnsupportedUriScheme

The given URI scheme is not supported by the associated local endpoint.

Unspecified

An unspecified error has occurred.

Trait Implementations

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<ErrorLinkFormat> for Error[src]

impl PartialEq<Error> for Error[src]

#[must_use] fn ne(&self, other: &Rhs) -> bool1.0.0[src]

This method tests for !=.

impl Default for Error[src]

impl Extend<Result<(), Error>> for Error[src]

impl Clone for Error[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Eq for Error[src]

impl Copy for Error[src]

impl Display for Error[src]

impl Debug for Error[src]

impl Hash for Error[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl Send for Error

impl Unpin for Error

impl Sync for Error

impl UnwindSafe for Error

impl RefUnwindSafe for Error

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,