pub struct Builder { /* private fields */ }
Available on crate feature
simple_http
only.Expand description
Builder for simple bitcoind SimpleHttpTransport
.
Implementations§
Source§impl Builder
impl Builder
Sourcepub fn timeout(self, timeout: Duration) -> Self
pub fn timeout(self, timeout: Duration) -> Self
Sets the timeout after which requests will abort if they aren’t finished.
Sourcepub fn url(self, url: &str) -> Result<Self, Error>
pub fn url(self, url: &str) -> Result<Self, Error>
Sets the URL of the server to the transport.
Sourcepub fn auth<S: AsRef<str>>(self, user: S, pass: Option<S>) -> Self
pub fn auth<S: AsRef<str>>(self, user: S, pass: Option<S>) -> Self
Adds authentication information to the transport.
Adds authentication information to the transport using a cookie string (‘user:pass’).
Sourcepub fn proxy_addr<S: AsRef<str>>(self, proxy_addr: S) -> Result<Self, Error>
Available on crate feature proxy
only.
pub fn proxy_addr<S: AsRef<str>>(self, proxy_addr: S) -> Result<Self, Error>
proxy
only.Adds proxy address to the transport for SOCKS5 proxy.
Sourcepub fn proxy_auth<S: AsRef<str>>(self, user: S, pass: S) -> Self
Available on crate feature proxy
only.
pub fn proxy_auth<S: AsRef<str>>(self, user: S, pass: S) -> Self
proxy
only.Adds optional proxy authentication as (‘username’, ‘password’).
Sourcepub fn build(self) -> SimpleHttpTransport
pub fn build(self) -> SimpleHttpTransport
Builds the final SimpleHttpTransport
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Builder
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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