pub struct AuthMethodSelectionOption {
pub method: AuthMethod,
}
Expand description
Represents the authentication methods selected by the client.
Fields§
§method: AuthMethod
Implementations§
Source§impl AuthMethodSelectionOption
impl AuthMethodSelectionOption
Sourcepub fn new(method: AuthMethod) -> Self
pub fn new(method: AuthMethod) -> Self
Constructs a new AuthMethodSelectionOption
.
Sourcepub fn wrap(self) -> SocksOption
pub fn wrap(self) -> SocksOption
Wraps the instance into a SocksOption
.
Sourcepub fn from_socks_bytes(bytes: Vec<u8>) -> Result<SocksOption>
pub fn from_socks_bytes(bytes: Vec<u8>) -> Result<SocksOption>
Deserializes the option from bytes.
Sourcepub fn into_socks_bytes(self) -> Vec<u8>
pub fn into_socks_bytes(self) -> Vec<u8>
Serializes the option into bytes.
Trait Implementations§
Source§impl Clone for AuthMethodSelectionOption
impl Clone for AuthMethodSelectionOption
Source§fn clone(&self) -> AuthMethodSelectionOption
fn clone(&self) -> AuthMethodSelectionOption
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 AuthMethodSelectionOption
impl RefUnwindSafe for AuthMethodSelectionOption
impl Send for AuthMethodSelectionOption
impl Sync for AuthMethodSelectionOption
impl Unpin for AuthMethodSelectionOption
impl UnwindSafe for AuthMethodSelectionOption
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