Struct jsonrpc::http::simple_http::Builder
source · pub struct Builder { /* private fields */ }
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 build(self) -> SimpleHttpTransport
pub fn build(self) -> SimpleHttpTransport
Builds the final SimpleHttpTransport
.
Trait Implementations§
Auto Trait Implementations§
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