Struct esplora_client::Builder
source · [−]Fields
base_url: String
proxy: Option<String>
Optional URL of the proxy to use to make requests to the Esplora server
The string should be formatted as: <protocol>://<user>:<password>@host:<port>
.
Note that the format of this value and the supported protocols change slightly between the
blocking version of the client (using ureq
) and the async version (using reqwest
). For more
details check with the documentation of the two crates. Both of them are compiled with
the socks
feature enabled.
The proxy is ignored when targeting wasm32
.
timeout: Option<u64>
Socket timeout.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn build_blocking(self) -> Result<BlockingClient, Error>
pub fn build_blocking(self) -> Result<BlockingClient, Error>
build a blocking client from builder
pub fn build_async(self) -> Result<AsyncClient, Error>
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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