pub struct Connect {
pub protocol: Protocol,
pub keep_alive: u16,
pub client_id: String,
pub clean_session: bool,
pub last_will: Option<LastWill>,
pub username: Option<String>,
pub password: Option<String>,
}
Expand description
Mqtt connect packet representation
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
username: Option<String>
Username of the client
password: Option<String>
Password of the client
Implementations§
Trait Implementations§
impl StructuralPartialEq for Connect
Auto Trait Implementations§
impl Freeze for Connect
impl RefUnwindSafe for Connect
impl Send for Connect
impl Sync for Connect
impl Unpin for Connect
impl UnwindSafe for Connect
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more