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 Freeze for Config
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