pub enum Error<NetworkError> {
Show 14 variants
Rng,
NotConnected,
AlreadyConnected,
Uri,
Busy,
Impossible,
Forbidden,
NoData,
Reset,
Timeout,
OutOfMemory,
MessageType,
Network(NetworkError),
MessageError(Error),
}Expand description
Endpoint Error
This error type only covers things that went wrong on our side and that the endpoint could not possibly handle in any meaningful way. For example, ill-formatted messages, messages arriving at the wrong time, messages which lack context or CoAP protocol timeouts are expected, handled automatically by the endpoint and only generate an “event” instead.
Variants§
Rng
Could not get random number from given PRNG
NotConnected
Endpoint is not connected
AlreadyConnected
Endpoint is already connected
Uri
Error while parsing the URI
Busy
There is already an operation ongoing
Impossible
Something really weird went wrong
Forbidden
The method that was called is not available in the current state
NoData
No data received
Reset
Reset received
Timeout
Timeout during operation
OutOfMemory
Out of Memory
MessageType
Wrong message type was given
Network(NetworkError)
Network error from underlying UDP Stack
MessageError(Error)
Error from message module