pub struct BatchRequest<'a, T> { /* private fields */ }
Expand description
A batch JSON-RPC request, used to bundle requests into a single transport call.
Implementations§
Source§impl<'a, T> BatchRequest<'a, T>
impl<'a, T> BatchRequest<'a, T>
Sourcepub fn new(transport: &'a RpcClientInner<T>) -> Self
pub fn new(transport: &'a RpcClientInner<T>) -> Self
Create a new batch request.
Trait Implementations§
Source§impl<'a, T: Debug> Debug for BatchRequest<'a, T>
impl<'a, T: Debug> Debug for BatchRequest<'a, T>
Source§impl<T> IntoFuture for BatchRequest<'_, T>
impl<T> IntoFuture for BatchRequest<'_, T>
Source§type Output = <BatchFuture<T> as Future>::Output
type Output = <BatchFuture<T> as Future>::Output
The output that the future will produce on completion.
Source§type IntoFuture = BatchFuture<T>
type IntoFuture = BatchFuture<T>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl<'a, T> Freeze for BatchRequest<'a, T>
impl<'a, T> !RefUnwindSafe for BatchRequest<'a, T>
impl<'a, T> Send for BatchRequest<'a, T>where
T: Sync,
impl<'a, T> Sync for BatchRequest<'a, T>where
T: Sync,
impl<'a, T> Unpin for BatchRequest<'a, T>
impl<'a, T> !UnwindSafe for BatchRequest<'a, 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