pub struct RpcBatcher {
pub max_batch_bytes: usize,
}Expand description
Combines multiple RpcCalls into a single packet payload when possible.
Wire format for a batch:
[count: u8] [call_1][call_2]...[call_N]Fields§
§max_batch_bytes: usizeMaximum payload bytes before starting a new batch packet.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RpcBatcher
impl RefUnwindSafe for RpcBatcher
impl Send for RpcBatcher
impl Sync for RpcBatcher
impl Unpin for RpcBatcher
impl UnsafeUnpin for RpcBatcher
impl UnwindSafe for RpcBatcher
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