Enum mqtt::control::fixed_header::FixedHeaderError [−][src]
pub enum FixedHeaderError { MalformedRemainingLength, Unrecognized(u8, u32), ReservedType(u8, u32), PacketTypeError(PacketTypeError), IoError(Error), }
Variants
MalformedRemainingLength
Unrecognized(u8, u32)
ReservedType(u8, u32)
PacketTypeError(PacketTypeError)
IoError(Error)
Trait Implementations
impl Debug for FixedHeaderError
[src]
impl Debug for FixedHeaderError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<Error> for FixedHeaderError
[src]
impl From<Error> for FixedHeaderError
fn from(err: Error) -> FixedHeaderError
[src]
fn from(err: Error) -> FixedHeaderError
Performs the conversion.
impl From<PacketTypeError> for FixedHeaderError
[src]
impl From<PacketTypeError> for FixedHeaderError
fn from(err: PacketTypeError) -> FixedHeaderError
[src]
fn from(err: PacketTypeError) -> FixedHeaderError
Performs the conversion.
impl Display for FixedHeaderError
[src]
impl Display for FixedHeaderError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Error for FixedHeaderError
[src]
impl Error for FixedHeaderError
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
[src]
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl<T: Packet> From<FixedHeaderError> for PacketError<T>
[src]
impl<T: Packet> From<FixedHeaderError> for PacketError<T>
fn from(err: FixedHeaderError) -> PacketError<T>
[src]
fn from(err: FixedHeaderError) -> PacketError<T>
Performs the conversion.
impl From<FixedHeaderError> for VariablePacketError
[src]
impl From<FixedHeaderError> for VariablePacketError
fn from(err: FixedHeaderError) -> VariablePacketError
[src]
fn from(err: FixedHeaderError) -> VariablePacketError
Performs the conversion.
Auto Trait Implementations
impl Send for FixedHeaderError
impl Send for FixedHeaderError
impl Sync for FixedHeaderError
impl Sync for FixedHeaderError