Enum minimq::ProtocolError
source · #[non_exhaustive]pub enum ProtocolError {
Show 15 variants
ProvidedClientIdTooLong,
UnexpectedPacket,
InvalidProperty,
MalformedPacket,
BufferSize,
BadIdentifier,
Unacknowledged,
WrongQos,
UnsupportedPacket,
NoTopic,
AuthAlreadySpecified,
WillAlreadySpecified,
Failed(ReasonCode),
Serialization(SerError),
Deserialization(DeError),
}
Expand description
Errors that are specific to the MQTT protocol implementation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ProvidedClientIdTooLong
UnexpectedPacket
InvalidProperty
MalformedPacket
BufferSize
BadIdentifier
Unacknowledged
WrongQos
UnsupportedPacket
NoTopic
AuthAlreadySpecified
WillAlreadySpecified
Failed(ReasonCode)
Serialization(SerError)
Deserialization(DeError)
Trait Implementations§
source§impl Clone for ProtocolError
impl Clone for ProtocolError
source§fn clone(&self) -> ProtocolError
fn clone(&self) -> ProtocolError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ProtocolError
impl Debug for ProtocolError
source§impl From<Error> for ProtocolError
impl From<Error> for ProtocolError
source§impl From<Error> for ProtocolError
impl From<Error> for ProtocolError
source§impl<E> From<ProtocolError> for Error<E>
impl<E> From<ProtocolError> for Error<E>
source§fn from(p: ProtocolError) -> Self
fn from(p: ProtocolError) -> Self
Converts to this type from the input type.
source§impl From<ProtocolError> for MinimqError
impl From<ProtocolError> for MinimqError
source§fn from(error: ProtocolError) -> Self
fn from(error: ProtocolError) -> Self
Converts to this type from the input type.
source§impl From<ReasonCode> for ProtocolError
impl From<ReasonCode> for ProtocolError
source§fn from(code: ReasonCode) -> Self
fn from(code: ReasonCode) -> Self
Converts to this type from the input type.
source§impl PartialEq for ProtocolError
impl PartialEq for ProtocolError
source§fn eq(&self, other: &ProtocolError) -> bool
fn eq(&self, other: &ProtocolError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ProtocolError
impl StructuralPartialEq for ProtocolError
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more