Enum mqtt::packet::VariablePacket
[−]
[src]
pub enum VariablePacket {
ConnectPacket(ConnectPacket),
ConnackPacket(ConnackPacket),
PublishPacket(PublishPacket),
PubackPacket(PubackPacket),
PubrecPacket(PubrecPacket),
PubrelPacket(PubrelPacket),
PubcompPacket(PubcompPacket),
PingreqPacket(PingreqPacket),
PingrespPacket(PingrespPacket),
SubscribePacket(SubscribePacket),
SubackPacket(SubackPacket),
UnsubscribePacket(UnsubscribePacket),
UnsubackPacket(UnsubackPacket),
DisconnectPacket(DisconnectPacket),
}Variants
ConnectPacket(ConnectPacket)ConnackPacket(ConnackPacket)PublishPacket(PublishPacket)PubackPacket(PubackPacket)PubrecPacket(PubrecPacket)PubrelPacket(PubrelPacket)PubcompPacket(PubcompPacket)PingreqPacket(PingreqPacket)PingrespPacket(PingrespPacket)SubscribePacket(SubscribePacket)SubackPacket(SubackPacket)UnsubscribePacket(UnsubscribePacket)UnsubackPacket(UnsubackPacket)DisconnectPacket(DisconnectPacket)Methods
impl VariablePacket[src]
fn new<T>(t: T) -> VariablePacket where VariablePacket: From<T>
Trait Implementations
impl Debug for VariablePacket[src]
impl Eq for VariablePacket[src]
impl PartialEq for VariablePacket[src]
fn eq(&self, __arg_0: &VariablePacket) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &VariablePacket) -> bool
This method tests for !=.
impl From<ConnectPacket> for VariablePacket[src]
fn from(pk: ConnectPacket) -> VariablePacket
Performs the conversion.
impl From<ConnackPacket> for VariablePacket[src]
fn from(pk: ConnackPacket) -> VariablePacket
Performs the conversion.
impl From<PublishPacket> for VariablePacket[src]
fn from(pk: PublishPacket) -> VariablePacket
Performs the conversion.
impl From<PubackPacket> for VariablePacket[src]
fn from(pk: PubackPacket) -> VariablePacket
Performs the conversion.
impl From<PubrecPacket> for VariablePacket[src]
fn from(pk: PubrecPacket) -> VariablePacket
Performs the conversion.
impl From<PubrelPacket> for VariablePacket[src]
fn from(pk: PubrelPacket) -> VariablePacket
Performs the conversion.
impl From<PubcompPacket> for VariablePacket[src]
fn from(pk: PubcompPacket) -> VariablePacket
Performs the conversion.
impl From<PingreqPacket> for VariablePacket[src]
fn from(pk: PingreqPacket) -> VariablePacket
Performs the conversion.
impl From<PingrespPacket> for VariablePacket[src]
fn from(pk: PingrespPacket) -> VariablePacket
Performs the conversion.
impl From<SubscribePacket> for VariablePacket[src]
fn from(pk: SubscribePacket) -> VariablePacket
Performs the conversion.
impl From<SubackPacket> for VariablePacket[src]
fn from(pk: SubackPacket) -> VariablePacket
Performs the conversion.
impl From<UnsubscribePacket> for VariablePacket[src]
fn from(pk: UnsubscribePacket) -> VariablePacket
Performs the conversion.
impl From<UnsubackPacket> for VariablePacket[src]
fn from(pk: UnsubackPacket) -> VariablePacket
Performs the conversion.
impl From<DisconnectPacket> for VariablePacket[src]
fn from(pk: DisconnectPacket) -> VariablePacket
Performs the conversion.
impl<'a> Encodable<'a> for VariablePacket[src]
type Err = VariablePacketError<'a>
fn encode<W: Write>(&self,
writer: &mut W)
-> Result<(), VariablePacketError<'a>>
writer: &mut W)
-> Result<(), VariablePacketError<'a>>
fn encoded_length(&self) -> u32
impl<'a> Decodable<'a> for VariablePacket[src]
type Err = VariablePacketError<'a>
type Cond = FixedHeader
fn decode_with<R: Read>(reader: &mut R,
fixed_header: Option<FixedHeader>)
-> Result<VariablePacket, Self::Err>
fixed_header: Option<FixedHeader>)
-> Result<VariablePacket, Self::Err>