Skip to main content

WriteConcernReceipt

Struct WriteConcernReceipt 

Source
pub struct WriteConcernReceipt { /* private fields */ }
Expand description

Actual processing acknowledgement progress. The receiving node always counts as one after ordinary apply completion. Certified evidence reports actual local and remote fences; a timed-out or failed-fence receipt may retain local progress below the requested durability. No failed write is rolled back. An unknown replica count is represented by None for local-only writes.

Implementations§

Source§

impl WriteConcernReceipt

Source

pub fn requested_durability(&self) -> WriteDurability

Source

pub fn with_requested_durability( self, durability: WriteDurability, ) -> Result<Self, WriteConcernPolicyError>

Source

pub fn evidence(&self) -> Option<&WriteConcernEvidence>

Certified floor and actual reached fences. Legacy responses can omit it unless require_evidence or a store/stable fence was requested.

Source

pub fn with_evidence( self, evidence: WriteConcernEvidence, ) -> Result<Self, WriteConcernPolicyError>

Source

pub fn new( receiving_node: String, replica_count: u32, requested: u32, required: u32, acknowledged_nodes: Vec<String>, ) -> Result<Self, WriteConcernPolicyError>

Source

pub fn receiving_node(&self) -> &str

Source

pub fn replica_count(&self) -> Option<u32>

Source

pub fn requested_acknowledgements(&self) -> u32

Source

pub fn required_acknowledgements(&self) -> u32

Source

pub fn acknowledged_nodes(&self) -> &[String]

Source

pub fn was_overridden(&self) -> bool

Source

pub fn with_region_progress( self, receiving_region: String, outside_region_acknowledged_nodes: Vec<String>, ) -> Result<Self, WriteConcernPolicyError>

Attach progress against the receiving node’s frozen region requirement.

Source

pub fn receiving_region(&self) -> Option<&str>

Frozen receiving-region label, present when a region requirement was used.

Source

pub fn outside_region_acknowledged_nodes(&self) -> &[String]

Eligible acknowledged identities classified outside the receiving region by the receiving node’s frozen configuration.

Source

pub fn other_region_satisfied(&self) -> bool

Whether an eligible outside-region processing acknowledgement was observed.

Source

pub fn validate_for( &self, options: &WriteConcernOptions, satisfied: bool, ) -> Result<(), WriteConcernPolicyError>

Validate receipt correlation with the requested policy. A timed-out receipt may lack the required progress but must preserve policy metadata.

Trait Implementations§

Source§

impl Clone for WriteConcernReceipt

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for WriteConcernReceipt

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for WriteConcernReceipt

Source§

impl PartialEq for WriteConcernReceipt

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for WriteConcernReceipt

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.