pub struct ForwardedPut {
pub key: String,
pub value: Vec<u8>,
pub timestamp_ms: u64,
pub node_id: String,
pub seq: u64,
pub boot_id: u64,
pub expires_at_ms: u64,
pub is_tombstone: bool,
pub priority: i32,
pub hops: u32,
pub req_id: u64,
pub write_concern: Option<Vec<u8>>,
}Expand description
A client-routed write: “you own this key’s fragment — apply it as coordinator and replicate to the other holders.” One network hop.
Fields§
§key: String§value: Vec<u8>§timestamp_ms: u64§node_id: String§seq: u64§boot_id: u64§expires_at_ms: u64Optional key expiry (wall-clock ms). 0/absent = no expiry.
is_tombstone: boolTrue if this is a deletion tombstone.
priority: i32Phase 7: priority the receiving node should apply this op with.
hops: u32Phase 8: re-forward count. A node that receives a ForwardedPut for a fragment it no longer serves (stale placement maps during migration) re-forwards it to the current owner instead of dropping it; hops bounds the chain.
req_id: u64Correlates the exact apply outcome back to the originating node.
write_concern: Option<Vec<u8>>Optional encoded WriteConcernPolicy. Absence preserves local acknowledgement.
Implementations§
Source§impl ForwardedPut
impl ForwardedPut
Sourcepub fn priority(&self) -> Priority
pub fn priority(&self) -> Priority
Returns the enum value of priority, or the default if the field is set to an invalid enum value.
Sourcepub fn set_priority(&mut self, value: Priority)
pub fn set_priority(&mut self, value: Priority)
Sets priority to the provided enum value.
Sourcepub fn write_concern(&self) -> &[u8] ⓘ
pub fn write_concern(&self) -> &[u8] ⓘ
Returns the value of write_concern, or the default value if write_concern is unset.
Trait Implementations§
Source§impl Clone for ForwardedPut
impl Clone for ForwardedPut
Source§impl Debug for ForwardedPut
impl Debug for ForwardedPut
Source§impl Default for ForwardedPut
impl Default for ForwardedPut
impl Eq for ForwardedPut
Source§impl Hash for ForwardedPut
impl Hash for ForwardedPut
Source§impl Message for ForwardedPut
impl Message for ForwardedPut
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
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,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
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,
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,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
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,
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,
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,
self.