pub enum SecurityOptions {
None,
UsernamePassword(String, String),
}
Expand description
Client authentication option for mqtt connect packet
Variants§
None
No authentication.
UsernamePassword(String, String)
Use the specified (username, password)
tuple to authenticate.
Trait Implementations§
Source§impl Clone for SecurityOptions
impl Clone for SecurityOptions
Source§fn clone(&self) -> SecurityOptions
fn clone(&self) -> SecurityOptions
Returns a copy 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 SecurityOptions
impl RefUnwindSafe for SecurityOptions
impl Send for SecurityOptions
impl Sync for SecurityOptions
impl Unpin for SecurityOptions
impl UnwindSafe for SecurityOptions
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