pub enum Decision {
Duplicate(Seq),
Accepted {
offset: usize,
},
Refused {
why: String,
},
}Expand description
What one proposal became.
Variants§
Duplicate(Seq)
This id is already in the log. The position is the first attempt’s, which is what makes the answer to a retry an acknowledgement rather than a refusal.
Accepted
Accepted. Its last event lands at base + offset once the batch is appended.
Refused
Refused, with the reason the program gave — or the reason the boundary gave, for an event that cannot be written durably.
Trait Implementations§
impl Eq for Decision
impl StructuralPartialEq for Decision
Auto Trait Implementations§
impl Freeze for Decision
impl RefUnwindSafe for Decision
impl Send for Decision
impl Sync for Decision
impl Unpin for Decision
impl UnwindSafe for Decision
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