pub struct HttpClient { /* private fields */ }
Expand description
HTTP JSON-RPC client
Implementations§
Source§impl HttpClient
impl HttpClient
Sourcepub fn new<U: Into<String>>(url: U) -> Result<Self, HttpClientError>
pub fn new<U: Into<String>>(url: U) -> Result<Self, HttpClientError>
Creates a new HTTP JSON-RPC client with given url
.
Sourcepub fn builder() -> HttpClientBuilder
pub fn builder() -> HttpClientBuilder
Creates a HttpClientBuilder
to configure a HttpClient
.
This is the same as HttpClientBuilder::new()
.
Trait Implementations§
Source§impl BatchTransport for HttpClient
impl BatchTransport for HttpClient
Source§impl Clone for HttpClient
impl Clone for HttpClient
Source§fn clone(&self) -> HttpClient
fn clone(&self) -> HttpClient
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 Transport for HttpClient
impl Transport for HttpClient
Auto Trait Implementations§
impl Freeze for HttpClient
impl !RefUnwindSafe for HttpClient
impl Send for HttpClient
impl Sync for HttpClient
impl Unpin for HttpClient
impl !UnwindSafe for HttpClient
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