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 VariablePacketpub 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 VariablePacketpub 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 VariablePacketfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Eq for VariablePacket[src]
impl Eq for VariablePacketimpl PartialEq for VariablePacket[src]
impl PartialEq for VariablePacketfn eq(&self, other: &VariablePacket) -> bool[src]
fn eq(&self, other: &VariablePacket) -> boolThis 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) -> boolThis method tests for !=.
impl From<ConnectPacket> for VariablePacket[src]
impl From<ConnectPacket> for VariablePacketfn from(pk: ConnectPacket) -> VariablePacket[src]
fn from(pk: ConnectPacket) -> VariablePacketPerforms the conversion.
impl From<ConnackPacket> for VariablePacket[src]
impl From<ConnackPacket> for VariablePacketfn from(pk: ConnackPacket) -> VariablePacket[src]
fn from(pk: ConnackPacket) -> VariablePacketPerforms the conversion.
impl From<PublishPacket> for VariablePacket[src]
impl From<PublishPacket> for VariablePacketfn from(pk: PublishPacket) -> VariablePacket[src]
fn from(pk: PublishPacket) -> VariablePacketPerforms the conversion.
impl From<PubackPacket> for VariablePacket[src]
impl From<PubackPacket> for VariablePacketfn from(pk: PubackPacket) -> VariablePacket[src]
fn from(pk: PubackPacket) -> VariablePacketPerforms the conversion.
impl From<PubrecPacket> for VariablePacket[src]
impl From<PubrecPacket> for VariablePacketfn from(pk: PubrecPacket) -> VariablePacket[src]
fn from(pk: PubrecPacket) -> VariablePacketPerforms the conversion.
impl From<PubrelPacket> for VariablePacket[src]
impl From<PubrelPacket> for VariablePacketfn from(pk: PubrelPacket) -> VariablePacket[src]
fn from(pk: PubrelPacket) -> VariablePacketPerforms the conversion.
impl From<PubcompPacket> for VariablePacket[src]
impl From<PubcompPacket> for VariablePacketfn from(pk: PubcompPacket) -> VariablePacket[src]
fn from(pk: PubcompPacket) -> VariablePacketPerforms the conversion.
impl From<PingreqPacket> for VariablePacket[src]
impl From<PingreqPacket> for VariablePacketfn from(pk: PingreqPacket) -> VariablePacket[src]
fn from(pk: PingreqPacket) -> VariablePacketPerforms the conversion.
impl From<PingrespPacket> for VariablePacket[src]
impl From<PingrespPacket> for VariablePacketfn from(pk: PingrespPacket) -> VariablePacket[src]
fn from(pk: PingrespPacket) -> VariablePacketPerforms the conversion.
impl From<SubscribePacket> for VariablePacket[src]
impl From<SubscribePacket> for VariablePacketfn from(pk: SubscribePacket) -> VariablePacket[src]
fn from(pk: SubscribePacket) -> VariablePacketPerforms the conversion.
impl From<SubackPacket> for VariablePacket[src]
impl From<SubackPacket> for VariablePacketfn from(pk: SubackPacket) -> VariablePacket[src]
fn from(pk: SubackPacket) -> VariablePacketPerforms the conversion.
impl From<UnsubscribePacket> for VariablePacket[src]
impl From<UnsubscribePacket> for VariablePacketfn from(pk: UnsubscribePacket) -> VariablePacket[src]
fn from(pk: UnsubscribePacket) -> VariablePacketPerforms the conversion.
impl From<UnsubackPacket> for VariablePacket[src]
impl From<UnsubackPacket> for VariablePacketfn from(pk: UnsubackPacket) -> VariablePacket[src]
fn from(pk: UnsubackPacket) -> VariablePacketPerforms the conversion.
impl From<DisconnectPacket> for VariablePacket[src]
impl From<DisconnectPacket> for VariablePacketfn from(pk: DisconnectPacket) -> VariablePacket[src]
fn from(pk: DisconnectPacket) -> VariablePacketPerforms the conversion.
impl Encodable for VariablePacket[src]
impl Encodable for VariablePackettype 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) -> u32Length of bytes after encoded
impl Decodable for VariablePacket[src]
impl Decodable for VariablePackettype 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 VariablePacketimpl Sync for VariablePacket
impl Sync for VariablePacket