Struct electrum_client::Config
source · pub struct Config { /* private fields */ }
Expand description
Configuration for an electrum client
Refer to Client::from_config
and ClientType::from_config
.
Implementations§
source§impl Config
impl Config
sourcepub fn socks5(&self) -> &Option<Socks5Config>
pub fn socks5(&self) -> &Option<Socks5Config>
Get the configuration for socks5
Set this with ConfigBuilder::socks5
sourcepub fn retry(&self) -> u8
pub fn retry(&self) -> u8
Get the configuration for retry
Set this with ConfigBuilder::retry
sourcepub fn timeout(&self) -> Option<Duration>
pub fn timeout(&self) -> Option<Duration>
Get the configuration for timeout
Set this with ConfigBuilder::timeout
sourcepub fn validate_domain(&self) -> bool
pub fn validate_domain(&self) -> bool
Get the configuration for validate_domain
Set this with ConfigBuilder::validate_domain
sourcepub fn builder() -> ConfigBuilder
pub fn builder() -> ConfigBuilder
Convenience method for calling ConfigBuilder::new
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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