Struct electrum_client::ConfigBuilder
source · pub struct ConfigBuilder { /* private fields */ }
Expand description
Config Builder
Implementations§
source§impl ConfigBuilder
impl ConfigBuilder
sourcepub fn new() -> Self
pub fn new() -> Self
Create a builder with a default config, equivalent to ConfigBuilder::default()
sourcepub fn socks5(self, socks5_config: Option<Socks5Config>) -> Self
pub fn socks5(self, socks5_config: Option<Socks5Config>) -> Self
Set the socks5 config if Some, it accept an Option
because it’s easier for the caller to use
in a method chain
sourcepub fn validate_domain(self, validate_domain: bool) -> Self
pub fn validate_domain(self, validate_domain: bool) -> Self
Sets if the domain has to be validated
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ConfigBuilder
impl Send for ConfigBuilder
impl Sync for ConfigBuilder
impl Unpin for ConfigBuilder
impl UnwindSafe for ConfigBuilder
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