pub struct AgentStateConditionalWriteRequest {
pub gate: Option<WriteEntry>,
pub condition: i32,
pub condition_value: Vec<u8>,
pub entries: Vec<WriteEntry>,
pub read_set: Vec<AgentTxnRead>,
pub condition_seq: u64,
pub role_entries: Vec<AgentStateRoleEntry>,
pub role_gate: Option<AgentStateRoleEntry>,
pub role_read_set: Vec<AgentStateRoleRead>,
}Fields§
§gate: Option<WriteEntry>Same shape as ConditionalBatchWriteRequest minus the shard fields — the shard is not the caller’s to choose here, it is the pinned coordination shard by construction.
condition: i32§condition_value: Vec<u8>§entries: Vec<WriteEntry>§read_set: Vec<AgentTxnRead>§condition_seq: u64§role_entries: Vec<AgentStateRoleEntry>Logical causal rows to apply alongside entries, expanded server-side.
Prefer these over raw entries for anything in a causal CF.
role_gate: Option<AgentStateRoleEntry>The GATE, named logically. Use this instead of gate for anything in a
causal CF: the coordination CF is created node-locally and is NOT in the
metadata registry, so a coordinator has no way to learn its physical id —
and any id it guessed would be a different CF on a different node.
The server puts the predicate on the row reads resolve to, and any additional mirror rows ride along as plain entries so the whole batch is still decided by the one predicate.
role_read_set: Vec<AgentStateRoleRead>Read-set entries named logically, resolved server-side and merged into
read_set. Needed for the same reason role_gate is: a causal row’s
physical address depends on the store’s layout, and the coordination CF has
no metadata id at all — a coordinator that built these itself would either
guess wrong or be unable to name the row.
Implementations§
Source§impl AgentStateConditionalWriteRequest
impl AgentStateConditionalWriteRequest
Sourcepub fn condition(&self) -> WriteConditionKind
pub fn condition(&self) -> WriteConditionKind
Returns the enum value of condition, or the default if the field is set to an invalid enum value.
Sourcepub fn set_condition(&mut self, value: WriteConditionKind)
pub fn set_condition(&mut self, value: WriteConditionKind)
Sets condition to the provided enum value.
Trait Implementations§
Source§impl Clone for AgentStateConditionalWriteRequest
impl Clone for AgentStateConditionalWriteRequest
Source§fn clone(&self) -> AgentStateConditionalWriteRequest
fn clone(&self) -> AgentStateConditionalWriteRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Message for AgentStateConditionalWriteRequest
impl Message for AgentStateConditionalWriteRequest
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.impl StructuralPartialEq for AgentStateConditionalWriteRequest
Auto Trait Implementations§
impl Freeze for AgentStateConditionalWriteRequest
impl RefUnwindSafe for AgentStateConditionalWriteRequest
impl Send for AgentStateConditionalWriteRequest
impl Sync for AgentStateConditionalWriteRequest
impl Unpin for AgentStateConditionalWriteRequest
impl UnsafeUnpin for AgentStateConditionalWriteRequest
impl UnwindSafe for AgentStateConditionalWriteRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request