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.
Note the Socks5 client type requires the proxy feature to be 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 UnsafeUnpin 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