pub struct Password {
pub username: Vec<u8>,
pub password: Vec<u8>,
}Expand description
Using username and password to authenticate.
The boolean value in associate type Auth::Output indicates whether the authentication is successful.
Fields§
§username: Vec<u8>§password: Vec<u8>Implementations§
Trait Implementations§
Source§impl Auth for Password
impl Auth for Password
type Output = Result<bool, Error>
fn as_handshake_method(&self) -> Method
fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
stream: &'life1 mut TcpStream,
) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl Freeze for Password
impl RefUnwindSafe for Password
impl Send for Password
impl Sync for Password
impl Unpin for Password
impl UnwindSafe for Password
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