Enum sage_mqtt::Packet [−][src]
pub enum Packet {
}
Expand description
The standard type to manipulate a AsyncRead/AsyncWrite-able MQTT packet. Each packet is an enum value with its own type.
Variants
Connect(Connect)
CONNECT MQTT packet. Opens a connection request.
Tuple Fields of Connect
0: Connect
ConnAck(ConnAck)
CONNACK MQTT packet. Aknowledge a connectio request.
Tuple Fields of ConnAck
0: ConnAck
Publish(Publish)
PUBLISH MQTT packet. Delivery a message to or from a server.
Tuple Fields of Publish
0: Publish
PubAck(PubAck)
PUBACK MQTT packet. Ackowledge a QoS 1 or QoS 2 message.
Tuple Fields of PubAck
0: PubAck
PubRec(PubRec)
PUBREC MQTT packet. Ackowledge a QoS 2 message.
Tuple Fields of PubRec
0: PubRec
PubRel(PubRel)
PUBREL MQTT packet. Ackowledge a QoS 2 message.
Tuple Fields of PubRel
0: PubRel
PubComp(PubComp)
PUBCOMP MQTT packet. Ackowledge a QoS 2 message.
Tuple Fields of PubComp
0: PubComp
Subscribe(Subscribe)
SUBSCRIBE MQTT packet. Subscribe a client to topics.
Tuple Fields of Subscribe
0: Subscribe
SubAck(SubAck)
SUBACK MQTT packet. Acknowledge a client SUBSCRIBE packet.
Tuple Fields of SubAck
0: SubAck
UnSubscribe(UnSubscribe)
UNSUBSCRIBE MQTT packet. Unsubscribe a client from topics.
Tuple Fields of UnSubscribe
0: UnSubscribe
UnSubAck(UnSubAck)
UNSUBACK MQTT packet. Acknowledge a client UNSUBSCRIBE packet.
Tuple Fields of UnSubAck
0: UnSubAck
PINGREQ MQTT packet. Send a ping request.
PINGRESP MQTT packet. Respond to a ping request.
Disconnect(Disconnect)
DISCONNECT MQTT packet. Disconnect a connextion and optionally a session.
Tuple Fields of Disconnect
0: Disconnect
Auth(Auth)
AUTH MQTT packet. Performs authentication exchanges between clients and server.
Tuple Fields of Auth
0: Auth
Implementations
Write the entire Packet
to writer
, returning the number of
bytes written.
In case of failure, the operation will return any MQTT-related error, or
std::io::Error
.
Read a control packet from reader
, returning a new Packet
.
In case of failure, the operation will return any MQTT-related error, or
std::io::Error
.
Trait Implementations
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Packet
impl UnwindSafe for Packet
Blanket Implementations
Mutably borrows from an owned value. Read more