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
sourceimpl Debug for VariableHeaderError
impl Debug for VariableHeaderError
sourceimpl Display for VariableHeaderError
impl Display for VariableHeaderError
sourceimpl Error for VariableHeaderError
impl Error for VariableHeaderError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<Error> for VariableHeaderError
impl From<Error> for VariableHeaderError
sourceimpl From<FromUtf8Error> for VariableHeaderError
impl From<FromUtf8Error> for VariableHeaderError
sourcefn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Performs the conversion.
sourceimpl From<TopicNameDecodeError> for VariableHeaderError
impl From<TopicNameDecodeError> for VariableHeaderError
sourcefn from(err: TopicNameDecodeError) -> VariableHeaderError
fn from(err: TopicNameDecodeError) -> VariableHeaderError
Performs the conversion.
sourceimpl From<TopicNameError> for VariableHeaderError
impl From<TopicNameError> for VariableHeaderError
sourcefn from(source: TopicNameError) -> Self
fn from(source: TopicNameError) -> Self
Performs the conversion.
sourceimpl<P> From<VariableHeaderError> for PacketError<P> where
P: DecodablePacket,
impl<P> From<VariableHeaderError> for PacketError<P> where
P: DecodablePacket,
sourcefn from(source: VariableHeaderError) -> Self
fn from(source: VariableHeaderError) -> Self
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for VariableHeaderError
impl Send for VariableHeaderError
impl Sync for VariableHeaderError
impl Unpin for VariableHeaderError
impl UnwindSafe for VariableHeaderError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more