Struct electrum_client::client::Client[][src]

pub struct Client { /* fields omitted */ }

Generalized Electrum client that supports multiple backends. Can re-instantiate client_type if connections drops

Implementations

impl Client[src]

pub fn new(url: &str) -> Result<Self, Error>[src]

Default constructor supporting multiple backends by providing a prefix

Supported prefixes are:

  • tcp:// for a TCP plaintext client.
  • ssl:// for an SSL-encrypted client. The server certificate will be verified.

If no prefix is specified, then tcp:// is assumed.

See Client::from_config for more configuration options

pub fn from_config(url: &str, config: Config) -> Result<Self, Error>[src]

Generic constructor that supports multiple backends and allows configuration through the [Config]

Trait Implementations

impl ElectrumApi for Client[src]

Auto Trait Implementations

impl RefUnwindSafe for Client

impl Send for Client

impl Sync for Client

impl Unpin for Client

impl UnwindSafe for Client

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, 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.