Struct sage_broker::Session [−][src]
pub struct Session { /* fields omitted */ }
Expand description
Represents a client and holds all of its data, may it be active or not.
If the client is connected, peer
is used to retrieve its information and
send him packets.
Implementations
Creates a new session, giving a peer and an id
A unique ID that cannot be changed neither can collide with
other instances of Session
This ID is not part of MQTT specification but is used to ensure a new
session can be created with a same client_id