pub struct Connect {
pub keep_alive: u16,
pub client_id: String,
pub clean_start: bool,
pub properties: Option<ConnectProperties>,
}
Expand description
Connection packet initiated by the client
Fields§
§keep_alive: u16
Mqtt keep alive time
client_id: String
Client Id
clean_start: bool
Clean session. Asks the broker to clear previous state
properties: Option<ConnectProperties>
Implementations§
Trait Implementations§
impl Eq for Connect
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