Struct mqttbytes::v4::Connect [−][src]
pub struct Connect {
pub protocol: Protocol,
pub keep_alive: u16,
pub client_id: String,
pub clean_session: bool,
pub last_will: Option<LastWill>,
pub login: Option<Login>,
}
Expand description
Connection packet initiated by the client
Fields
protocol: Protocol
Mqtt protocol version
keep_alive: u16
Mqtt keep alive time
client_id: String
Client Id
clean_session: bool
Clean session. Asks the broker to clear previous state
last_will: Option<LastWill>
Will that broker needs to publish when the client disconnects
login: Option<Login>
Login credentials
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Connect
impl UnwindSafe for Connect
Blanket Implementations
Mutably borrows from an owned value. Read more