pub struct RpcList(pub Vec<Rpc>);Tuple Fields§
§0: Vec<Rpc>Trait Implementations§
Source§impl Handler for RpcList
impl Handler for RpcList
Source§fn call<'life0, 'life1, 'async_trait>(
&'life0 self,
method: &'life1 str,
params: Vec<Value>,
) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn call<'life0, 'life1, 'async_trait>(
&'life0 self,
method: &'life1 str,
params: Vec<Value>,
) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Performs a call against the servers in order, failing over to the next on transport errors. A JSON-RPC error response is returned immediately without failover, since it represents a valid answer from the server.
Auto Trait Implementations§
impl !RefUnwindSafe for RpcList
impl !UnwindSafe for RpcList
impl Freeze for RpcList
impl Send for RpcList
impl Sync for RpcList
impl Unpin for RpcList
impl UnsafeUnpin for RpcList
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