pub enum ProducerAppendResult {
Accepted {
epoch: u64,
seq: u64,
next_offset: Offset,
closed: bool,
},
Duplicate {
epoch: u64,
seq: u64,
next_offset: Offset,
closed: bool,
},
}Expand description
Outcome of Storage::append_with_producer.
Includes a snapshot of stream state taken atomically with the operation
so handlers never need a separate head() call.
Variants§
Accepted
New data accepted (200 OK)
Duplicate
Duplicate detected, data already persisted (204 No Content)
Trait Implementations§
Source§impl Clone for ProducerAppendResult
impl Clone for ProducerAppendResult
Source§fn clone(&self) -> ProducerAppendResult
fn clone(&self) -> ProducerAppendResult
Returns a duplicate of the value. Read more
1.0.0 · 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 ProducerAppendResult
impl Debug for ProducerAppendResult
Source§impl PartialEq for ProducerAppendResult
impl PartialEq for ProducerAppendResult
impl Eq for ProducerAppendResult
impl StructuralPartialEq for ProducerAppendResult
Auto Trait Implementations§
impl Freeze for ProducerAppendResult
impl RefUnwindSafe for ProducerAppendResult
impl Send for ProducerAppendResult
impl Sync for ProducerAppendResult
impl Unpin for ProducerAppendResult
impl UnsafeUnpin for ProducerAppendResult
impl UnwindSafe for ProducerAppendResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.