pub trait Decodable: Sized {
type Error: Error;
type Cond;
// Required method
fn decode_with<R: Read>(
reader: &mut R,
cond: Self::Cond
) -> Result<Self, Self::Error>;
// Provided method
fn decode<R: Read>(reader: &mut R) -> Result<Self, Self::Error>
where Self::Cond: Default { ... }
}
Expand description
Methods for decoding bytes to an Object according to MQTT specification
Required Associated Types§
Required Methods§
Provided Methods§
Object Safety§
This trait is not object safe.