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), }
Variable packet
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]
impl VariablePacket
pub fn peek<A: AsyncRead>(
rdr: A
) -> impl Future<Item = (A, FixedHeader, Vec<u8>), Error = VariablePacketError>
[src]
pub fn peek<A: AsyncRead>(
rdr: A
) -> impl Future<Item = (A, FixedHeader, Vec<u8>), Error = VariablePacketError>
pub fn peek_finalize<A: AsyncRead>(
rdr: A
) -> impl Future<Item = (A, Vec<u8>, Self), Error = VariablePacketError>
[src]
pub fn peek_finalize<A: AsyncRead>(
rdr: A
) -> impl Future<Item = (A, Vec<u8>, Self), Error = VariablePacketError>
pub fn parse<A: AsyncRead>(
rdr: A
) -> impl Future<Item = (A, Self), Error = VariablePacketError>
[src]
pub fn parse<A: AsyncRead>(
rdr: A
) -> impl Future<Item = (A, Self), Error = VariablePacketError>
impl VariablePacket
[src]
impl VariablePacket
pub fn new<T>(t: T) -> VariablePacket where
VariablePacket: From<T>,
[src]
pub fn new<T>(t: T) -> VariablePacket where
VariablePacket: From<T>,
Trait Implementations
impl Debug for VariablePacket
[src]
impl Debug for VariablePacket
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 Eq for VariablePacket
[src]
impl Eq for VariablePacket
impl PartialEq for VariablePacket
[src]
impl PartialEq for VariablePacket
fn eq(&self, other: &VariablePacket) -> bool
[src]
fn eq(&self, other: &VariablePacket) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &VariablePacket) -> bool
[src]
fn ne(&self, other: &VariablePacket) -> bool
This method tests for !=
.
impl From<ConnectPacket> for VariablePacket
[src]
impl From<ConnectPacket> for VariablePacket
fn from(pk: ConnectPacket) -> VariablePacket
[src]
fn from(pk: ConnectPacket) -> VariablePacket
Performs the conversion.
impl From<ConnackPacket> for VariablePacket
[src]
impl From<ConnackPacket> for VariablePacket
fn from(pk: ConnackPacket) -> VariablePacket
[src]
fn from(pk: ConnackPacket) -> VariablePacket
Performs the conversion.
impl From<PublishPacket> for VariablePacket
[src]
impl From<PublishPacket> for VariablePacket
fn from(pk: PublishPacket) -> VariablePacket
[src]
fn from(pk: PublishPacket) -> VariablePacket
Performs the conversion.
impl From<PubackPacket> for VariablePacket
[src]
impl From<PubackPacket> for VariablePacket
fn from(pk: PubackPacket) -> VariablePacket
[src]
fn from(pk: PubackPacket) -> VariablePacket
Performs the conversion.
impl From<PubrecPacket> for VariablePacket
[src]
impl From<PubrecPacket> for VariablePacket
fn from(pk: PubrecPacket) -> VariablePacket
[src]
fn from(pk: PubrecPacket) -> VariablePacket
Performs the conversion.
impl From<PubrelPacket> for VariablePacket
[src]
impl From<PubrelPacket> for VariablePacket
fn from(pk: PubrelPacket) -> VariablePacket
[src]
fn from(pk: PubrelPacket) -> VariablePacket
Performs the conversion.
impl From<PubcompPacket> for VariablePacket
[src]
impl From<PubcompPacket> for VariablePacket
fn from(pk: PubcompPacket) -> VariablePacket
[src]
fn from(pk: PubcompPacket) -> VariablePacket
Performs the conversion.
impl From<PingreqPacket> for VariablePacket
[src]
impl From<PingreqPacket> for VariablePacket
fn from(pk: PingreqPacket) -> VariablePacket
[src]
fn from(pk: PingreqPacket) -> VariablePacket
Performs the conversion.
impl From<PingrespPacket> for VariablePacket
[src]
impl From<PingrespPacket> for VariablePacket
fn from(pk: PingrespPacket) -> VariablePacket
[src]
fn from(pk: PingrespPacket) -> VariablePacket
Performs the conversion.
impl From<SubscribePacket> for VariablePacket
[src]
impl From<SubscribePacket> for VariablePacket
fn from(pk: SubscribePacket) -> VariablePacket
[src]
fn from(pk: SubscribePacket) -> VariablePacket
Performs the conversion.
impl From<SubackPacket> for VariablePacket
[src]
impl From<SubackPacket> for VariablePacket
fn from(pk: SubackPacket) -> VariablePacket
[src]
fn from(pk: SubackPacket) -> VariablePacket
Performs the conversion.
impl From<UnsubscribePacket> for VariablePacket
[src]
impl From<UnsubscribePacket> for VariablePacket
fn from(pk: UnsubscribePacket) -> VariablePacket
[src]
fn from(pk: UnsubscribePacket) -> VariablePacket
Performs the conversion.
impl From<UnsubackPacket> for VariablePacket
[src]
impl From<UnsubackPacket> for VariablePacket
fn from(pk: UnsubackPacket) -> VariablePacket
[src]
fn from(pk: UnsubackPacket) -> VariablePacket
Performs the conversion.
impl From<DisconnectPacket> for VariablePacket
[src]
impl From<DisconnectPacket> for VariablePacket
fn from(pk: DisconnectPacket) -> VariablePacket
[src]
fn from(pk: DisconnectPacket) -> VariablePacket
Performs the conversion.
impl Encodable for VariablePacket
[src]
impl Encodable for VariablePacket
type Err = VariablePacketError
fn encode<W: Write>(&self, writer: &mut W) -> Result<(), VariablePacketError>
[src]
fn encode<W: Write>(&self, writer: &mut W) -> Result<(), VariablePacketError>
Encodes to writer
fn encoded_length(&self) -> u32
[src]
fn encoded_length(&self) -> u32
Length of bytes after encoded
impl Decodable for VariablePacket
[src]
impl Decodable for VariablePacket
type Err = VariablePacketError
type Cond = FixedHeader
fn decode_with<R: Read>(
reader: &mut R,
fixed_header: Option<FixedHeader>
) -> Result<VariablePacket, Self::Err>
[src]
fn decode_with<R: Read>(
reader: &mut R,
fixed_header: Option<FixedHeader>
) -> Result<VariablePacket, Self::Err>
Decodes object with additional data (or hints)
fn decode<R: Read>(reader: &mut R) -> Result<Self, Self::Err>
[src]
fn decode<R: Read>(reader: &mut R) -> Result<Self, Self::Err>
Decodes object from reader
Auto Trait Implementations
impl Send for VariablePacket
impl Send for VariablePacket
impl Sync for VariablePacket
impl Sync for VariablePacket