Enum electrum_client::client::ClientType [−][src]
Generalized Electrum client that supports multiple backends. This wraps
RawClient
and provides a more user-friendly
constructor that can choose the right backend based on the url prefix.
This is available only with the default
features, or if proxy
and one ssl implementation are enabled
Variants
SSL(RawClient<ElectrumSslStream>)
Socks5(RawClient<ElectrumProxyStream>)
Implementations
impl ClientType
[src]
pub fn from_config(url: &str, config: &Config) -> Result<Self, Error>
[src]
Constructor that supports multiple backends and allows configuration through the [Config]
Auto Trait Implementations
impl RefUnwindSafe for ClientType
impl Send for ClientType
impl Sync for ClientType
impl Unpin for ClientType
impl UnwindSafe for ClientType
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, 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>,