pub enum SocksOption {
AuthMethodAdvertisement(AuthMethodAdvertisementOption),
AuthMethodSelection(AuthMethodSelectionOption),
Metadata(MetadataOption),
Unrecognized(UnrecognizedOption),
}
Expand description
Enumerates the types of SOCKS options.
Variants§
AuthMethodAdvertisement(AuthMethodAdvertisementOption)
AuthMethodSelection(AuthMethodSelectionOption)
Metadata(MetadataOption)
Unrecognized(UnrecognizedOption)
Implementations§
Source§impl SocksOption
impl SocksOption
Sourcepub fn as_socks_bytes(&self) -> Vec<u8>
pub fn as_socks_bytes(&self) -> Vec<u8>
Converts the SOCKS option to a vector of bytes.
Trait Implementations§
Source§impl Clone for SocksOption
impl Clone for SocksOption
Source§fn clone(&self) -> SocksOption
fn clone(&self) -> SocksOption
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 SocksOption
impl RefUnwindSafe for SocksOption
impl Send for SocksOption
impl Sync for SocksOption
impl Unpin for SocksOption
impl UnwindSafe for SocksOption
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