[−][src]Struct electrum_client::Socks5Config
Configuration for Socks5
Fields
addr: String
The address of the socks5 service
credentials: Option<Socks5Credential>
Optional credential for the service
Implementations
impl Socks5Config
[src]
pub fn new(addr: impl ToString) -> Self
[src]
Socks5Config constructor without credentials
pub fn with_credentials(
addr: impl ToString,
username: String,
password: String
) -> Self
[src]
addr: impl ToString,
username: String,
password: String
) -> Self
Socks5Config constructor if we have credentials
Trait Implementations
impl Clone for Socks5Config
[src]
pub fn clone(&self) -> Socks5Config
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Socks5Config
[src]
Auto Trait Implementations
impl RefUnwindSafe for Socks5Config
impl Send for Socks5Config
impl Sync for Socks5Config
impl Unpin for Socks5Config
impl UnwindSafe for Socks5Config
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,