pub enum ConnectAuth {
None,
Username {
username: String,
},
Password {
password: Bytes,
},
UsernamePassword {
username: String,
password: Bytes,
},
}Variants§
Implementations§
Trait Implementations§
Source§impl Clone for ConnectAuth
impl Clone for ConnectAuth
Source§fn clone(&self) -> ConnectAuth
fn clone(&self) -> ConnectAuth
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConnectAuth
impl Debug for ConnectAuth
Source§impl Default for ConnectAuth
impl Default for ConnectAuth
Source§fn default() -> ConnectAuth
fn default() -> ConnectAuth
Returns the “default value” for a type. Read more
Source§impl PartialEq for ConnectAuth
impl PartialEq for ConnectAuth
Source§fn eq(&self, other: &ConnectAuth) -> bool
fn eq(&self, other: &ConnectAuth) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ConnectAuth
impl StructuralPartialEq for ConnectAuth
Auto Trait Implementations§
impl !Freeze for ConnectAuth
impl RefUnwindSafe for ConnectAuth
impl Send for ConnectAuth
impl Sync for ConnectAuth
impl Unpin for ConnectAuth
impl UnsafeUnpin for ConnectAuth
impl UnwindSafe for ConnectAuth
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