pub struct HttpTransport {
pub base_url: String,
pub client: Client,
pub timeout: Duration,
}Fields§
§base_url: String§client: Client§timeout: DurationImplementations§
Trait Implementations§
Source§impl AccumulateRpc for HttpTransport
impl AccumulateRpc for HttpTransport
fn rpc_call<'life0, 'life1, 'life2, 'async_trait, TP, TR>(
&'life0 self,
method: &'life1 str,
params: &'life2 TP,
) -> Pin<Box<dyn Future<Output = Result<TR, Error>> + Send + 'async_trait>>where
TP: 'async_trait + Serialize + Send + Sync,
TR: 'async_trait + DeserializeOwned,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§impl Clone for HttpTransport
impl Clone for HttpTransport
Source§fn clone(&self) -> HttpTransport
fn clone(&self) -> HttpTransport
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 moreAuto Trait Implementations§
impl Freeze for HttpTransport
impl !RefUnwindSafe for HttpTransport
impl Send for HttpTransport
impl Sync for HttpTransport
impl Unpin for HttpTransport
impl UnsafeUnpin for HttpTransport
impl !UnwindSafe for HttpTransport
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