pub enum MQTTParserError {
MalformedVariableIntegerError,
BitReaderError(BitReaderError),
FromUtf8Error(FromUtf8Error),
}Variants§
Trait Implementations§
Source§impl Debug for MQTTParserError
impl Debug for MQTTParserError
Source§impl Display for MQTTParserError
impl Display for MQTTParserError
Source§impl Fail for MQTTParserError
impl Fail for MQTTParserError
Source§fn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
Source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace carried by this failure, if it
carries one. Read moreSource§impl From<BitReaderError> for MQTTParserError
impl From<BitReaderError> for MQTTParserError
Source§fn from(error: BitReaderError) -> MQTTParserError
fn from(error: BitReaderError) -> MQTTParserError
Converts to this type from the input type.
Source§impl From<FromUtf8Error> for MQTTParserError
impl From<FromUtf8Error> for MQTTParserError
Source§fn from(error: FromUtf8Error) -> MQTTParserError
fn from(error: FromUtf8Error) -> MQTTParserError
Converts to this type from the input type.
Source§impl<R> FromBitReader<MQTTParserError, R> for Packet
impl<R> FromBitReader<MQTTParserError, R> for Packet
Source§impl<R> FromBitReader<MQTTParserError, R> for Property
impl<R> FromBitReader<MQTTParserError, R> for Property
Source§impl<R> FromBitReader<MQTTParserError, R> for QoS
impl<R> FromBitReader<MQTTParserError, R> for QoS
Source§impl<R> FromBitReader<MQTTParserError, R> for ReasonCode
impl<R> FromBitReader<MQTTParserError, R> for ReasonCode
Source§impl<R> FromBitReader<MQTTParserError, R> for ReservedFlags
impl<R> FromBitReader<MQTTParserError, R> for ReservedFlags
Source§impl<R> FromBitReader<MQTTParserError, R> for UTF8EncodedString
impl<R> FromBitReader<MQTTParserError, R> for UTF8EncodedString
fn from_bitreader<'life0, 'async_trait>(
reader: &'life0 mut BitReader<R>,
) -> Pin<Box<dyn Future<Output = Result<UTF8EncodedString>> + Send + 'async_trait>>where
'life0: 'async_trait,
Source§impl<R> FromBitReader<MQTTParserError, R> for VariableByteInteger
impl<R> FromBitReader<MQTTParserError, R> for VariableByteInteger
fn from_bitreader<'life0, 'async_trait>(
reader: &'life0 mut BitReader<R>,
) -> Pin<Box<dyn Future<Output = Result<VariableByteInteger>> + Send + 'async_trait>>where
'life0: 'async_trait,
Source§impl<R> FromBitReader<MQTTParserError, R> for Properties
impl<R> FromBitReader<MQTTParserError, R> for Properties
fn from_bitreader<'life0, 'async_trait>(
reader: &'life0 mut BitReader<R>,
) -> Pin<Box<dyn Future<Output = Result<Properties, MQTTParserError>> + Send + 'async_trait>>where
'life0: 'async_trait,
Source§impl<R> FromBitReader<MQTTParserError, R> for BinaryData
impl<R> FromBitReader<MQTTParserError, R> for BinaryData
fn from_bitreader<'life0, 'async_trait>(
reader: &'life0 mut BitReader<R>,
) -> Pin<Box<dyn Future<Output = Result<BinaryData>> + Send + 'async_trait>>where
'life0: 'async_trait,
Source§impl<R> FromBitReaderWithLength<MQTTParserError, R> for Vec<ReasonCode>
impl<R> FromBitReaderWithLength<MQTTParserError, R> for Vec<ReasonCode>
fn from_bitreader_with_length<'life0, 'async_trait>(
reader: &'life0 mut BitReader<R>,
len: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<ReasonCode>, MQTTParserError>> + Send + 'async_trait>>where
'life0: 'async_trait,
Source§impl<R> FromBitReaderWithLength<MQTTParserError, R> for Vec<UTF8EncodedString>
impl<R> FromBitReaderWithLength<MQTTParserError, R> for Vec<UTF8EncodedString>
fn from_bitreader_with_length<'life0, 'async_trait>(
reader: &'life0 mut BitReader<R>,
len: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<UTF8EncodedString>, MQTTParserError>> + Send + 'async_trait>>where
'life0: 'async_trait,
Source§impl<R> FromBitReaderWithLength<MQTTParserError, R> for Vec<TopicFilter>
impl<R> FromBitReaderWithLength<MQTTParserError, R> for Vec<TopicFilter>
Auto Trait Implementations§
impl Freeze for MQTTParserError
impl !RefUnwindSafe for MQTTParserError
impl Send for MQTTParserError
impl Sync for MQTTParserError
impl Unpin for MQTTParserError
impl !UnwindSafe for MQTTParserError
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