pub struct SimpleHttpTransport { /* private fields */ }
Expand description
Simple HTTP transport that implements the necessary subset of HTTP for running a bitcoind RPC client.
Implementations§
Trait Implementations§
Source§impl Clone for SimpleHttpTransport
impl Clone for SimpleHttpTransport
Source§fn clone(&self) -> SimpleHttpTransport
fn clone(&self) -> SimpleHttpTransport
Returns a duplicate 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<'life0, 'life1, 'async_trait>(
&'life0 self,
req: Request<'life1>,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn send_request<'life0, 'life1, 'async_trait>(
&'life0 self,
req: Request<'life1>,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send an RPC request over the transport.
Source§fn send_batch<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
reqs: &'life1 [Request<'life2>],
) -> Pin<Box<dyn Future<Output = Result<Vec<Response>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn send_batch<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
reqs: &'life1 [Request<'life2>],
) -> Pin<Box<dyn Future<Output = Result<Vec<Response>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Send 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
Format the target of this transport.
I.e. the URL/socket/…
Auto Trait Implementations§
impl Freeze for SimpleHttpTransport
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