Struct reqwest_enum::provider::Provider
source · pub struct Provider<T: Target> { /* private fields */ }Implementations§
Trait Implementations§
source§impl<T> JsonProviderType<T> for Provider<T>
impl<T> JsonProviderType<T> for Provider<T>
source§fn request_json<'life0, 'async_trait, U>(
&'life0 self,
target: T
) -> Pin<Box<dyn Future<Output = Result<U, Error>> + Send + 'async_trait>>where
U: 'async_trait + DeserializeOwned,
Self: 'async_trait,
'life0: 'async_trait,
fn request_json<'life0, 'async_trait, U>(
&'life0 self,
target: T
) -> Pin<Box<dyn Future<Output = Result<U, Error>> + Send + 'async_trait>>where
U: 'async_trait + DeserializeOwned,
Self: 'async_trait,
'life0: 'async_trait,
request and deserialize response to json using serde
source§impl<T> JsonRpcProviderType<T> for Provider<T>where
T: JsonRpcTarget + Send,
impl<T> JsonRpcProviderType<T> for Provider<T>where
T: JsonRpcTarget + Send,
source§fn batch<'life0, 'async_trait, U>(
&'life0 self,
targets: Vec<T>
) -> Pin<Box<dyn Future<Output = Result<Vec<JsonRpcResult<U>>, JsonRpcError>> + Send + 'async_trait>>where
U: 'async_trait + DeserializeOwned,
Self: 'async_trait,
'life0: 'async_trait,
fn batch<'life0, 'async_trait, U>(
&'life0 self,
targets: Vec<T>
) -> Pin<Box<dyn Future<Output = Result<Vec<JsonRpcResult<U>>, JsonRpcError>> + Send + 'async_trait>>where
U: 'async_trait + DeserializeOwned,
Self: 'async_trait,
'life0: 'async_trait,
batch isomorphic JSON-RPC requests
source§impl<T> ProviderType<T> for Provider<T>
impl<T> ProviderType<T> for Provider<T>
Auto Trait Implementations§
impl<T> Freeze for Provider<T>
impl<T> !RefUnwindSafe for Provider<T>
impl<T> Send for Provider<T>
impl<T> Sync for Provider<T>
impl<T> Unpin for Provider<T>
impl<T> !UnwindSafe for Provider<T>
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