pub enum Error {
Show 16 variants
EnablingMultiConnectionsFailed(Error),
EnablingPassiveSocketModeFailed(Error),
ConnectError(Error),
TransmissionStartFailed(Error),
SendFailed(Error),
ReceiveFailed(Error),
CloseError(Error),
PartialSend,
UnconfirmedSocketState,
NoSocketAvailable,
AlreadyConnected,
SocketUnconnected,
ClosingSocket,
ReceiveOverflow,
UnexpectedWouldBlock,
TimerError,
}Expand description
Network related errors
Variants§
EnablingMultiConnectionsFailed(Error)
Error while sending CIPMUX command for enabling multiple connections
EnablingPassiveSocketModeFailed(Error)
Error while sending CIPRECVMODE command for enabling passive socket receiving mode
ConnectError(Error)
TCP connect command failed
TransmissionStartFailed(Error)
Preparing the transmission failed (CIPSEND command)
SendFailed(Error)
Transmission of data failed
ReceiveFailed(Error)
Transmission of data failed
CloseError(Error)
Socket close command failed
PartialSend
AT-ESP confirmed receiving an unexpected byte count
UnconfirmedSocketState
TCP connect or close command was responded by by OK. But connect or close was not confirmed by URC message.
NoSocketAvailable
No socket available, since the maximum number is in use.
AlreadyConnected
Given socket is already connected to another remote. Socket needs to be closed first.
SocketUnconnected
Unable to send data if socket is not connected
ClosingSocket
Socket was remotely closed and needs to either reconnected to fully closed by calling close() for Adapter
ReceiveOverflow
Received more data then requested from AT-ESP and data does not fit in (remaining) buffer. This indicates either a bug in this crate or in AT-ESP firmware.
UnexpectedWouldBlock
Received an unexpected WouldBlock. The most common cause of errors is an incorrect mode of the client. This must be either timeout or blocking.
TimerError
Upstream timer error