Enum ntex_mqtt::error::ProtocolError [−][src]
pub enum ProtocolError { Decode(DecodeError), Encode(EncodeError), Unexpected(u8, &'static str), PacketIdMismatch, MaxTopicAlias, ReceiveMaximumExceeded, UnknownTopicAlias, KeepAliveTimeout, Io(Error), }
Expand description
Protocol level errors
Variants
Decode(DecodeError)
Expand description
Mqtt parse error
Encode(EncodeError)
Expand description
Mqtt encode error
Expand description
Unexpected packet
Expand description
Packet id of publish ack packet does not match of send publish packet
Expand description
Topic alias is greater than max topic alias
Expand description
Number of in-flight messages exceeded
Expand description
Unknown topic alias
Expand description
Keep alive timeout
Io(Error)
Expand description
Unexpected io error
Trait Implementations
impl Debug for ProtocolError
[src]
impl Debug for ProtocolError
[src]impl Display for ProtocolError
[src]
impl Display for ProtocolError
[src]impl From<DecodeError> for ProtocolError
[src]
impl From<DecodeError> for ProtocolError
[src]fn from(original: DecodeError) -> ProtocolError
[src]
fn from(original: DecodeError) -> ProtocolError
[src]Performs the conversion.
impl From<Either<DecodeError, Error>> for ProtocolError
[src]
impl From<Either<DecodeError, Error>> for ProtocolError
[src]fn from(err: Either<DecodeError, Error>) -> Self
[src]
fn from(err: Either<DecodeError, Error>) -> Self
[src]Performs the conversion.
impl From<EncodeError> for ProtocolError
[src]
impl From<EncodeError> for ProtocolError
[src]fn from(original: EncodeError) -> ProtocolError
[src]
fn from(original: EncodeError) -> ProtocolError
[src]Performs the conversion.
impl From<Error> for ProtocolError
[src]
impl From<Error> for ProtocolError
[src]fn from(original: Error) -> ProtocolError
[src]
fn from(original: Error) -> ProtocolError
[src]Performs the conversion.
impl<E> From<ProtocolError> for MqttError<E>
[src]
impl<E> From<ProtocolError> for MqttError<E>
[src]fn from(err: ProtocolError) -> Self
[src]
fn from(err: ProtocolError) -> Self
[src]Performs the conversion.
impl From<ProtocolError> for ClientError
[src]
impl From<ProtocolError> for ClientError
[src]fn from(original: ProtocolError) -> ClientError
[src]
fn from(original: ProtocolError) -> ClientError
[src]Performs the conversion.
impl From<ProtocolError> for ClientError
[src]
impl From<ProtocolError> for ClientError
[src]fn from(original: ProtocolError) -> ClientError
[src]
fn from(original: ProtocolError) -> ClientError
[src]Performs the conversion.
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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self