Struct electrum_client::Socks5Config[][src]

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

Configuration for Socks5


addr: String

The address of the socks5 service

credentials: Option<Socks5Credential>

Optional credential for the service


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

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.