pub enum CommitCondition {
Tail {
path: StreamPath,
expected: u64,
},
Absent {
path: StreamPath,
},
}Expand description
Exact optimistic condition.
Variants§
Tail
Existing tail must match.
Absent
Path must never have existed or been retired.
Fields
§
path: StreamPathPermanently named path that must be unused.
Trait Implementations§
Source§impl Clone for CommitCondition
impl Clone for CommitCondition
Source§impl Debug for CommitCondition
impl Debug for CommitCondition
impl Eq for CommitCondition
Source§impl PartialEq for CommitCondition
impl PartialEq for CommitCondition
impl StructuralPartialEq for CommitCondition
Auto Trait Implementations§
impl Freeze for CommitCondition
impl RefUnwindSafe for CommitCondition
impl Send for CommitCondition
impl Sync for CommitCondition
impl Unpin for CommitCondition
impl UnsafeUnpin for CommitCondition
impl UnwindSafe for CommitCondition
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.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>
Wrap the input message
T in a tonic::Request