Enum electrum_client::client::ClientType
source · [−]pub enum ClientType {
TCP(RawClient<ElectrumPlaintextStream>),
SSL(RawClient<ElectrumSslStream>),
Socks5(RawClient<ElectrumProxyStream>),
}Expand description
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
TCP(RawClient<ElectrumPlaintextStream>)
SSL(RawClient<ElectrumSslStream>)
Socks5(RawClient<ElectrumProxyStream>)
Implementations
sourceimpl ClientType
impl ClientType
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more