Struct mqttrs::Connect [−][src]
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
impl<'a> StructuralPartialEq for Connect<'a>
[src]
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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more