Struct jsonrpc::http::minreq_http::MinreqHttpTransport
source · pub struct MinreqHttpTransport { /* private fields */ }
Expand description
An HTTP transport that uses minreq
and is useful for running a bitcoind RPC client.
Implementations§
source§impl MinreqHttpTransport
impl MinreqHttpTransport
sourcepub fn new() -> Self
pub fn new() -> Self
Constructs a new MinreqHttpTransport
with default parameters.
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Returns a builder for MinreqHttpTransport
.
Trait Implementations§
source§impl Clone for MinreqHttpTransport
impl Clone for MinreqHttpTransport
source§fn clone(&self) -> MinreqHttpTransport
fn clone(&self) -> MinreqHttpTransport
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MinreqHttpTransport
impl Debug for MinreqHttpTransport
source§impl Default for MinreqHttpTransport
impl Default for MinreqHttpTransport
source§impl Transport for MinreqHttpTransport
impl Transport for MinreqHttpTransport
source§fn send_request(&self, req: Request<'_>) -> Result<Response, Error>
fn send_request(&self, req: Request<'_>) -> Result<Response, Error>
Sends an RPC request over the transport.
source§fn send_batch(&self, reqs: &[Request<'_>]) -> Result<Vec<Response>, Error>
fn send_batch(&self, reqs: &[Request<'_>]) -> Result<Vec<Response>, Error>
Sends a batch of RPC requests over the transport.
source§fn fmt_target(&self, f: &mut Formatter<'_>) -> Result
fn fmt_target(&self, f: &mut Formatter<'_>) -> Result
Formats the target of this transport. I.e. the URL/socket/…
Auto Trait Implementations§
impl RefUnwindSafe for MinreqHttpTransport
impl Send for MinreqHttpTransport
impl Sync for MinreqHttpTransport
impl Unpin for MinreqHttpTransport
impl UnwindSafe for MinreqHttpTransport
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