pub struct Connect<'a> {
pub protocol: Protocol,
pub keep_alive: u16,
pub client_id: &'a str,
pub clean_session: bool,
pub last_will: Option<LastWill<'a>>,
pub username: Option<&'a str>,
pub password: Option<&'a [u8]>,
}
Expand description
Connect packet (MQTT 3.1).
Fields
protocol: Protocol
keep_alive: u16
client_id: &'a str
clean_session: bool
last_will: Option<LastWill<'a>>
username: Option<&'a str>
password: Option<&'a [u8]>
Trait Implementations
sourceimpl<'a> PartialEq<Connect<'a>> for Connect<'a>
impl<'a> PartialEq<Connect<'a>> for Connect<'a>
impl<'a> StructuralPartialEq for Connect<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Connect<'a>
impl<'a> Send for Connect<'a>
impl<'a> Sync for Connect<'a>
impl<'a> Unpin for Connect<'a>
impl<'a> UnwindSafe for Connect<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more