pub enum XAddIdSpec {
AutoAll,
AutoSeq(u64),
Explicit(StreamId),
}Expand description
XADD’s ID argument: either an explicit <ms>-<seq> (both parts may
be * to auto-fill seq only) or fully auto-generate via *.
Variants§
AutoAll
* — generate both ms (= current wall-clock) and seq.
AutoSeq(u64)
<ms>-* — caller fixes ms, server picks the next free seq.
Explicit(StreamId)
<ms>-<seq> — caller fully specifies the ID.
Trait Implementations§
Source§impl Clone for XAddIdSpec
impl Clone for XAddIdSpec
Source§fn clone(&self) -> XAddIdSpec
fn clone(&self) -> XAddIdSpec
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 moreimpl Copy for XAddIdSpec
Source§impl Debug for XAddIdSpec
impl Debug for XAddIdSpec
impl Eq for XAddIdSpec
Source§impl PartialEq for XAddIdSpec
impl PartialEq for XAddIdSpec
Source§fn eq(&self, other: &XAddIdSpec) -> bool
fn eq(&self, other: &XAddIdSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for XAddIdSpec
Auto Trait Implementations§
impl Freeze for XAddIdSpec
impl RefUnwindSafe for XAddIdSpec
impl Send for XAddIdSpec
impl Sync for XAddIdSpec
impl Unpin for XAddIdSpec
impl UnsafeUnpin for XAddIdSpec
impl UnwindSafe for XAddIdSpec
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