pub struct ChunkPosition {
pub index: u32,
pub count: u32,
}Expand description
Where one record sits in the run of records that together carry a
message too large for one RPC record: its index, from 0, and the run’s
length. Every record of a run carries the same count, each index in
[0, count) is sent exactly once, and a run always has at least one
record, so an empty message is a run of one empty record. The sender may
issue a run’s calls concurrently and over several connections, so its
records can arrive in any order, and the runs of several messages can be
in flight at once; the driver’s ChunkRunAssembler puts them back
together.
Fields§
§index: u32The record’s index in its run, from 0.
count: u32The number of records in the run; at least 1.
Implementations§
Trait Implementations§
Source§impl Clone for ChunkPosition
impl Clone for ChunkPosition
impl Copy for ChunkPosition
Source§impl Debug for ChunkPosition
impl Debug for ChunkPosition
impl Eq for ChunkPosition
Source§impl Hash for ChunkPosition
impl Hash for ChunkPosition
Source§impl PartialEq for ChunkPosition
impl PartialEq for ChunkPosition
impl StructuralPartialEq for ChunkPosition
Auto Trait Implementations§
impl Freeze for ChunkPosition
impl RefUnwindSafe for ChunkPosition
impl Send for ChunkPosition
impl Sync for ChunkPosition
impl Unpin for ChunkPosition
impl UnsafeUnpin for ChunkPosition
impl UnwindSafe for ChunkPosition
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