Enum ntex_mqtt::error::ClientError
source · pub enum ClientError<T: Debug> {
Ack(T),
Protocol(ProtocolError),
HandshakeTimeout,
Disconnected(Option<Error>),
Connect(ConnectError),
}
Expand description
Errors which can occur when attempting to handle mqtt client connection.
Variants§
Ack(T)
Connect negotiation failed
Protocol(ProtocolError)
Protocol error
HandshakeTimeout
Handshake timeout
Disconnected(Option<Error>)
Peer disconnected
Connect(ConnectError)
Connect error
Trait Implementations§
source§impl<T: Debug> Display for ClientError<T>
impl<T: Debug> Display for ClientError<T>
source§impl<T: Debug> Error for ClientError<T>where
Self: Debug + Display,
impl<T: Debug> Error for ClientError<T>where
Self: Debug + Display,
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl<T: Debug> From<ConnectError> for ClientError<T>
impl<T: Debug> From<ConnectError> for ClientError<T>
source§impl<T: Debug> From<Either<DecodeError, Error>> for ClientError<T>
impl<T: Debug> From<Either<DecodeError, Error>> for ClientError<T>
source§fn from(err: Either<DecodeError, Error>) -> Self
fn from(err: Either<DecodeError, Error>) -> Self
Converts to this type from the input type.
source§impl<T: Debug> From<Either<EncodeError, Error>> for ClientError<T>
impl<T: Debug> From<Either<EncodeError, Error>> for ClientError<T>
source§fn from(err: Either<EncodeError, Error>) -> Self
fn from(err: Either<EncodeError, Error>) -> Self
Converts to this type from the input type.
source§impl<T: Debug> From<ProtocolError> for ClientError<T>
impl<T: Debug> From<ProtocolError> for ClientError<T>
source§fn from(source: ProtocolError) -> Self
fn from(source: ProtocolError) -> Self
Converts to this type from the input type.