pub struct Batch<T> { /* private fields */ }
Expand description
Transport allowing to batch queries together.
Implementations§
Trait Implementations§
Source§impl<T> Transport for Batch<T>where
T: BatchTransport,
impl<T> Transport for Batch<T>where
T: BatchTransport,
Source§type Out = SingleResult
type Out = SingleResult
The type of future this transport returns when a call is made.
Source§fn prepare(&self, method: &str, params: Vec<Value>) -> (RequestId, Call)
fn prepare(&self, method: &str, params: Vec<Value>) -> (RequestId, Call)
Prepare serializable RPC call for given method with parameters.
Source§fn send(&self, id: RequestId, request: Call, options: CallOptions) -> Self::Out
fn send(&self, id: RequestId, request: Call, options: CallOptions) -> Self::Out
Execute prepared RPC call.
Source§fn set_max_response_bytes(&mut self, v: u64)
fn set_max_response_bytes(&mut self, v: u64)
set the max response bytes, do nothing by default
Auto Trait Implementations§
impl<T> Freeze for Batch<T>where
T: Freeze,
impl<T> !RefUnwindSafe for Batch<T>
impl<T> Send for Batch<T>where
T: Send,
impl<T> Sync for Batch<T>where
T: Sync,
impl<T> Unpin for Batch<T>where
T: Unpin,
impl<T> !UnwindSafe for Batch<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