Struct fast_socks5::server::SimpleUserPassword
source · pub struct SimpleUserPassword {
pub username: String,
pub password: String,
}
Expand description
Basic user/pass auth method provided.
Fields§
§username: String
§password: String
Trait Implementations§
source§impl Authentication for SimpleUserPassword
impl Authentication for SimpleUserPassword
This is an example to auth via simple credentials. If the auth succeed, we return the username authenticated with, for further uses.
Auto Trait Implementations§
impl Freeze for SimpleUserPassword
impl RefUnwindSafe for SimpleUserPassword
impl Send for SimpleUserPassword
impl Sync for SimpleUserPassword
impl Unpin for SimpleUserPassword
impl UnwindSafe for SimpleUserPassword
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