Struct electrum_client::ConfigBuilder
source · [−]pub struct ConfigBuilder { /* private fields */ }
Expand description
Config Builder
Implementations
sourceimpl 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>) -> Result<Self, Error>
pub fn socks5(self, socks5_config: Option<Socks5Config>) -> Result<Self, Error>
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more