Enum ntex_mqtt::error::ProtocolError
source · [−]pub enum ProtocolError {
Decode(DecodeError),
Encode(EncodeError),
Unexpected(u8, &'static str),
PacketIdMismatch,
MaxTopicAlias,
ReceiveMaximumExceeded,
UnknownTopicAlias,
KeepAliveTimeout,
}
Expand description
Protocol level errors
Variants
Decode(DecodeError)
Mqtt parse error
Encode(EncodeError)
Mqtt encode error
Unexpected(u8, &'static str)
Unexpected packet
PacketIdMismatch
Packet id of publish ack packet does not match of send publish packet
MaxTopicAlias
Topic alias is greater than max topic alias
ReceiveMaximumExceeded
Number of in-flight messages exceeded
UnknownTopicAlias
Unknown topic alias
KeepAliveTimeout
Keep alive timeout
Trait Implementations
sourceimpl Debug for ProtocolError
impl Debug for ProtocolError
sourceimpl Display for ProtocolError
impl Display for ProtocolError
sourceimpl Error for ProtocolError
impl Error for ProtocolError
1.30.0 · sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<(u8, &'static str)> for ProtocolError
impl From<(u8, &'static str)> for ProtocolError
sourcefn from(original: (u8, &'static str)) -> ProtocolError
fn from(original: (u8, &'static str)) -> ProtocolError
Converts to this type from the input type.
sourceimpl From<DecodeError> for ProtocolError
impl From<DecodeError> for ProtocolError
sourcefn from(original: DecodeError) -> ProtocolError
fn from(original: DecodeError) -> ProtocolError
Converts to this type from the input type.
sourceimpl From<EncodeError> for ProtocolError
impl From<EncodeError> for ProtocolError
sourcefn from(original: EncodeError) -> ProtocolError
fn from(original: EncodeError) -> ProtocolError
Converts to this type from the input type.
sourceimpl From<ProtocolError> for ClientError
impl From<ProtocolError> for ClientError
sourcefn from(original: ProtocolError) -> ClientError
fn from(original: ProtocolError) -> ClientError
Converts to this type from the input type.
sourceimpl From<ProtocolError> for ClientError
impl From<ProtocolError> for ClientError
sourcefn from(original: ProtocolError) -> ClientError
fn from(original: ProtocolError) -> ClientError
Converts to this type from the input type.
sourceimpl<E> From<ProtocolError> for MqttError<E>
impl<E> From<ProtocolError> for MqttError<E>
sourcefn from(err: ProtocolError) -> Self
fn from(err: ProtocolError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for ProtocolError
impl Send for ProtocolError
impl Sync for ProtocolError
impl Unpin for ProtocolError
impl UnwindSafe for ProtocolError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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