Skip to main content

RunFeedHeads

Struct RunFeedHeads 

Source
pub struct RunFeedHeads {
    pub epoch: Option<LineageId>,
    pub lifecycle_head: u64,
    pub activity_head: u64,
    pub activity_pruned_through: u64,
    pub link_count: u64,
}
Expand description

The positions of a run store’s durable facts.

A run’s view is built from three kinds of durable fact, and each is tracked on its own: the lifecycle transitions and the bounded activity, which are feeds with cursors, and the operations linked to a run afterwards, which are an invalidation count. A consumer holds each separately, because lifecycle facts are never pruned while activity is bounded, a link changes a run’s view without being either, and none of them moves when the project’s operation history does. Two readings with equal positions in one epoch describe the same run facts.

Fields§

§epoch: Option<LineageId>

The lineage the run store is bound to, absent while no run store exists. Feed cursors are meaningful only within one epoch: a restore forks the run store to a new lineage, and its sequences continue from the backup, not from the store it was copied from.

§lifecycle_head: u64

Newest lifecycle feed sequence, zero when the feed is empty.

§activity_head: u64

Newest activity feed sequence ever assigned, zero when the feed is empty.

§activity_pruned_through: u64

Highest activity sequence retention has removed; a cursor below it has a gap.

§link_count: u64

How many operations were ever linked to a run in this epoch.

Links are append-only and each distinct operation is linked once, so the count only grows and a replayed link does not move it. It is an invalidation token, not a feed: it says that some run’s linked operations changed, not which, and a consumer that sees it change reads the runs it displays again. It promises no order of links and no resumable position.

Trait Implementations§

Source§

impl Clone for RunFeedHeads

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for RunFeedHeads

Source§

impl Debug for RunFeedHeads

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for RunFeedHeads

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for RunFeedHeads

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for RunFeedHeads

Source§

impl PartialEq for RunFeedHeads

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for RunFeedHeads

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for RunFeedHeads

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.