Struct mqtt_bytes_v5::Connect
source · 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: u16Mqtt keep alive time
client_id: StringClient Id
clean_start: boolClean session. Asks the broker to clear previous state
properties: Option<ConnectProperties>Implementations§
Trait Implementations§
source§impl PartialEq for Connect
impl PartialEq for Connect
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