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§
Source§impl ClientType
impl ClientType
Auto Trait Implementations§
impl !Freeze for ClientType
impl RefUnwindSafe for ClientType
impl Send for ClientType
impl Sync for ClientType
impl Unpin for ClientType
impl UnwindSafe for ClientType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more