pub struct Builder { /* private fields */ }
Expand description
Builder for simple bitcoind SimpleHttpTransport
s
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 async fn url(self, url: &str) -> Result<Self, Error>
pub async fn url(self, url: &str) -> Result<Self, Error>
Set 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
Add authentication information to the transport.
Add 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 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