pub struct ConnectPacket {
pub protocol_name: String,
pub protocol_level: u8,
pub clean_session: bool,
pub keep_alive: u16,
pub client_id: String,
pub will: Option<Will>,
pub username: Option<String>,
pub password: Option<Vec<u8>>,
}Expand description
CONNECT packet from client
Fields§
§protocol_name: String§protocol_level: u8§clean_session: bool§keep_alive: u16§client_id: String§will: Option<Will>§username: Option<String>§password: Option<Vec<u8>>Trait Implementations§
Source§impl Clone for ConnectPacket
impl Clone for ConnectPacket
Source§fn clone(&self) -> ConnectPacket
fn clone(&self) -> ConnectPacket
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ConnectPacket
impl RefUnwindSafe for ConnectPacket
impl Send for ConnectPacket
impl Sync for ConnectPacket
impl Unpin for ConnectPacket
impl UnsafeUnpin for ConnectPacket
impl UnwindSafe for ConnectPacket
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