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