Struct jsonrpc::http::simple_http::SimpleHttpTransport
source · pub struct SimpleHttpTransport { /* private fields */ }
Expand description
Simple HTTP transport that implements the necessary subset of HTTP for running a bitcoind RPC client.
Implementations§
source§impl SimpleHttpTransport
impl SimpleHttpTransport
sourcepub fn new() -> Self
pub fn new() -> Self
Constructs a new SimpleHttpTransport
with default parameters.
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Returns a builder for SimpleHttpTransport
.
sourcepub fn set_url_path(&mut self, path: String)
pub fn set_url_path(&mut self, path: String)
Replaces only the path part of the URL.
Trait Implementations§
source§impl Clone for SimpleHttpTransport
impl Clone for SimpleHttpTransport
source§fn clone(&self) -> SimpleHttpTransport
fn clone(&self) -> SimpleHttpTransport
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 SimpleHttpTransport
impl Debug for SimpleHttpTransport
source§impl Default for SimpleHttpTransport
impl Default for SimpleHttpTransport
source§impl Transport for SimpleHttpTransport
impl Transport for SimpleHttpTransport
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 SimpleHttpTransport
impl Send for SimpleHttpTransport
impl Sync for SimpleHttpTransport
impl Unpin for SimpleHttpTransport
impl UnwindSafe for SimpleHttpTransport
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