pub enum CommitOutcome {
Assigned {
base_offset: i64,
record_count: i32,
},
Duplicate {
base_offset: i64,
},
}Expand description
Per-batch result of Sequencer::commit.
Variants§
Assigned
A fresh, contiguous offset range was assigned starting at base_offset.
Fields
Duplicate
A retried batch was recognized as already committed (idempotent no-op);
the original base_offset is returned.
Trait Implementations§
Source§impl Clone for CommitOutcome
impl Clone for CommitOutcome
Source§fn clone(&self) -> CommitOutcome
fn clone(&self) -> CommitOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CommitOutcome
impl Debug for CommitOutcome
Source§impl<'de> Deserialize<'de> for CommitOutcome
impl<'de> Deserialize<'de> for CommitOutcome
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CommitOutcome
Source§impl PartialEq for CommitOutcome
impl PartialEq for CommitOutcome
Source§impl Serialize for CommitOutcome
impl Serialize for CommitOutcome
impl StructuralPartialEq for CommitOutcome
Auto Trait Implementations§
impl Freeze for CommitOutcome
impl RefUnwindSafe for CommitOutcome
impl Send for CommitOutcome
impl Sync for CommitOutcome
impl Unpin for CommitOutcome
impl UnsafeUnpin for CommitOutcome
impl UnwindSafe for CommitOutcome
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