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

Unexpected(u8, &'static str)
Expand description

Unexpected packet

PacketIdMismatch
Expand description

Packet id of publish ack packet does not match of send publish packet

MaxTopicAlias
Expand description

Topic alias is greater than max topic alias

ReceiveMaximumExceeded
Expand description

Number of in-flight messages exceeded

UnknownTopicAlias
Expand description

Unknown topic alias

KeepAliveTimeout
Expand description

Keep alive timeout

Io(Error)
Expand description

Unexpected io error

Trait Implementations

impl Debug for ProtocolError[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl Display for ProtocolError[src]

fn fmt(&self, _derive_more_display_formatter: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl From<(u8, &'static str)> for ProtocolError[src]

fn from(original: (u8, &'static str)) -> ProtocolError[src]

Performs the conversion.

impl From<DecodeError> for ProtocolError[src]

fn from(original: DecodeError) -> ProtocolError[src]

Performs the conversion.

impl From<Either<DecodeError, Error>> for ProtocolError[src]

fn from(err: Either<DecodeError, Error>) -> Self[src]

Performs the conversion.

impl From<EncodeError> for ProtocolError[src]

fn from(original: EncodeError) -> ProtocolError[src]

Performs the conversion.

impl From<Error> for ProtocolError[src]

fn from(original: Error) -> ProtocolError[src]

Performs the conversion.

impl<E> From<ProtocolError> for MqttError<E>[src]

fn from(err: ProtocolError) -> Self[src]

Performs the conversion.

impl From<ProtocolError> for ClientError[src]

fn from(original: ProtocolError) -> ClientError[src]

Performs the conversion.

impl From<ProtocolError> for ClientError[src]

fn from(original: ProtocolError) -> ClientError[src]

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T> Instrument for T[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]

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToString for T where
    T: Display + ?Sized
[src]

pub default fn to_string(&self) -> String[src]

Converts the given value to a String. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.