pub struct ScanRequest {
pub req_id: u64,
pub fragment: u32,
pub matcher_kind: u32,
pub matcher_arg: Vec<u8>,
pub transform_kind: u32,
pub transform_arg: u32,
pub limit: u32,
pub offset: u64,
pub priority: i32,
pub hops: u32,
}Expand description
Distributed scan: coordinator -> fragment holder. Mirrors ForwardedGet: one holder per fragment, failover across replica_order, hop-bounded re-forwarding during placement migration. The spec is data, never code.
Fields§
§req_id: u64§fragment: u32§matcher_kind: u32Matcher descriptor: 0=all, 1=key prefix.
matcher_arg: Vec<u8>Matcher argument: prefix bytes when matcher_kind=1.
transform_kind: u32Transform descriptor: 0=identity, 1=key_only, 2=prefix_bytes.
transform_arg: u32Transform argument: N when transform_kind=2.
limit: u32Per-fragment match bound. 0 = server default. This bound is also the wire-size safety: the response is a single envelope, so limit * avg value size must stay comfortably under the 16 MiB frame cap.
offset: u64Skip-first-N pagination cursor (deterministic key order).
priority: i32Always PRIORITY_BACKGROUND for scans.
hops: u32Re-forward bound, as with ForwardedGet.
Implementations§
Source§impl ScanRequest
impl ScanRequest
Trait Implementations§
Source§impl Clone for ScanRequest
impl Clone for ScanRequest
Source§impl Debug for ScanRequest
impl Debug for ScanRequest
Source§impl Default for ScanRequest
impl Default for ScanRequest
impl Eq for ScanRequest
Source§impl Hash for ScanRequest
impl Hash for ScanRequest
Source§impl Message for ScanRequest
impl Message for ScanRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for ScanRequest
impl PartialEq for ScanRequest
impl StructuralPartialEq for ScanRequest
Auto Trait Implementations§
impl Freeze for ScanRequest
impl RefUnwindSafe for ScanRequest
impl Send for ScanRequest
impl Sync for ScanRequest
impl Unpin for ScanRequest
impl UnsafeUnpin for ScanRequest
impl UnwindSafe for ScanRequest
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