pub enum Add {
Auto,
Seq(u64),
At(Id),
}Expand description
What XADD was told to use for the ID.
Variants§
Auto
*, which is the clock, or the last ID with one added if the clock has
not moved.
Seq(u64)
5-*, which is that millisecond and the next free sequence inside it.
At(Id)
5-3, which is exactly that and fails if it is not above the last one.
Trait Implementations§
impl Copy for Add
impl Eq for Add
impl StructuralPartialEq for Add
Auto Trait Implementations§
impl Freeze for Add
impl RefUnwindSafe for Add
impl Send for Add
impl Sync for Add
impl Unpin for Add
impl UnsafeUnpin for Add
impl UnwindSafe for Add
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