pub enum AuthMethod {
NoAuth = 0,
UserPass = 2,
NoMethods = 255,
}
Expand description
Available authentication methods and their hex value
Variants§
Implementations§
Source§impl AuthMethod
impl AuthMethod
pub async fn get_available_methods<S: AsyncRead + AsyncWrite + Unpin>( methods_count: u8, socket: &mut S, ) -> Result<Vec<AuthMethod>, Box<dyn Error>>
Trait Implementations§
Source§impl PartialEq for AuthMethod
impl PartialEq for AuthMethod
impl StructuralPartialEq for AuthMethod
Auto Trait Implementations§
impl Freeze for AuthMethod
impl RefUnwindSafe for AuthMethod
impl Send for AuthMethod
impl Sync for AuthMethod
impl Unpin for AuthMethod
impl UnwindSafe for AuthMethod
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