[][src]Struct electrum_client::Socks5Config

pub struct Socks5Config {
    pub addr: String,
    pub credentials: Option<Socks5Credential>,
}

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]

Socks5Config constructor if we have credentials

Trait Implementations

impl Clone for Socks5Config[src]

impl Debug for Socks5Config[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.