pub struct Connect {
pub protocol: Protocol,
pub clean_session: bool,
pub keep_alive: u16,
pub client_id: Arc<String>,
pub last_will: Option<LastWill>,
pub username: Option<Arc<String>>,
pub password: Option<Bytes>,
}
Expand description
Connect packet body type.
Fields§
§protocol: Protocol
§clean_session: bool
§keep_alive: u16
§client_id: Arc<String>
§last_will: Option<LastWill>
§username: Option<Arc<String>>
§password: Option<Bytes>
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