pub enum QueueItemLifecycle {
Live,
Struck,
}Expand description
Visible lifecycle state of a single rendered queue item, in ascending lawful order. This is the coarse lattice the CRDT convergence joins over; richer orchestration queue state machines refine this state but must map back to it.
Variants§
Live
The item is a live, un-struck queue head and is still actionable.
Struck
The item is struck through (~~...~~) and visibly retired. A stale live
re-emit must never regress past this.
Implementations§
Source§impl QueueItemLifecycle
impl QueueItemLifecycle
Sourcepub fn join(self, other: QueueItemLifecycle) -> QueueItemLifecycle
pub fn join(self, other: QueueItemLifecycle) -> QueueItemLifecycle
The join (max) of two lifecycle states. Monotonic: a Live re-emit can
never regress a Struck item.
Sourcepub fn classify(item: &str) -> QueueItemLifecycle
pub fn classify(item: &str) -> QueueItemLifecycle
Classify a rendered queue item’s first line. A markdown strike (~~)
anywhere on the identity line marks the item answered-and-retired.
Trait Implementations§
Source§impl Clone for QueueItemLifecycle
impl Clone for QueueItemLifecycle
Source§fn clone(&self) -> QueueItemLifecycle
fn clone(&self) -> QueueItemLifecycle
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 QueueItemLifecycle
Source§impl Debug for QueueItemLifecycle
impl Debug for QueueItemLifecycle
Source§impl<'de> Deserialize<'de> for QueueItemLifecycle
impl<'de> Deserialize<'de> for QueueItemLifecycle
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for QueueItemLifecycle
Source§impl Hash for QueueItemLifecycle
impl Hash for QueueItemLifecycle
Source§impl Ord for QueueItemLifecycle
impl Ord for QueueItemLifecycle
Source§fn cmp(&self, other: &QueueItemLifecycle) -> Ordering
fn cmp(&self, other: &QueueItemLifecycle) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for QueueItemLifecycle
impl PartialEq for QueueItemLifecycle
Source§fn eq(&self, other: &QueueItemLifecycle) -> bool
fn eq(&self, other: &QueueItemLifecycle) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for QueueItemLifecycle
impl PartialOrd for QueueItemLifecycle
Source§impl Serialize for QueueItemLifecycle
impl Serialize for QueueItemLifecycle
impl StructuralPartialEq for QueueItemLifecycle
Auto Trait Implementations§
impl Freeze for QueueItemLifecycle
impl RefUnwindSafe for QueueItemLifecycle
impl Send for QueueItemLifecycle
impl Sync for QueueItemLifecycle
impl Unpin for QueueItemLifecycle
impl UnsafeUnpin for QueueItemLifecycle
impl UnwindSafe for QueueItemLifecycle
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