Enum mqtt::control::variable_header::VariableHeaderError
source · pub enum VariableHeaderError {
IoError(Error),
InvalidReservedFlag,
FromUtf8Error(FromUtf8Error),
TopicNameError(TopicNameError),
InvalidProtocolVersion,
}
Expand description
Errors while decoding variable header
Variants§
IoError(Error)
InvalidReservedFlag
FromUtf8Error(FromUtf8Error)
TopicNameError(TopicNameError)
InvalidProtocolVersion
Trait Implementations§
source§impl Debug for VariableHeaderError
impl Debug for VariableHeaderError
source§impl Display for VariableHeaderError
impl Display for VariableHeaderError
source§impl Error for VariableHeaderError
impl Error for VariableHeaderError
source§fn 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 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<Error> for VariableHeaderError
impl From<Error> for VariableHeaderError
source§impl From<FromUtf8Error> for VariableHeaderError
impl From<FromUtf8Error> for VariableHeaderError
source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
source§impl From<TopicNameDecodeError> for VariableHeaderError
impl From<TopicNameDecodeError> for VariableHeaderError
source§fn from(err: TopicNameDecodeError) -> VariableHeaderError
fn from(err: TopicNameDecodeError) -> VariableHeaderError
Converts to this type from the input type.
source§impl From<TopicNameError> for VariableHeaderError
impl From<TopicNameError> for VariableHeaderError
source§fn from(source: TopicNameError) -> Self
fn from(source: TopicNameError) -> Self
Converts to this type from the input type.
source§impl<P> From<VariableHeaderError> for PacketError<P>where
P: DecodablePacket,
impl<P> From<VariableHeaderError> for PacketError<P>where
P: DecodablePacket,
source§fn from(source: VariableHeaderError) -> Self
fn from(source: VariableHeaderError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for VariableHeaderError
impl !RefUnwindSafe for VariableHeaderError
impl Send for VariableHeaderError
impl Sync for VariableHeaderError
impl Unpin for VariableHeaderError
impl !UnwindSafe for VariableHeaderError
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