Skip to main content

ProjectsEvent

Enum ProjectsEvent 

Source
pub enum ProjectsEvent {
Show 35 variants DesignersPoll { open: usize, }, DesignersProceed { sessions: Vec<DesignerSeen>, }, DesignersSkipped, RunStarted { run_id: String, action: ProjectAction, }, PreImageExported { bytes: usize, }, TagsPreImageExported { provider: String, bytes: usize, }, TagImportSent { provider: String, path: String, policy: &'static str, nodes: usize, carry: bool, }, TagValuesCarried { provider: String, path: String, nodes: usize, }, TagProviderSettingsApplied { provider: String, action: &'static str, }, TagGroupsWritten { providers: Vec<String>, written: usize, deleted: usize, }, TagImportAnswered { provider: String, clean: bool, }, TagsVerified { provider: String, equal: bool, }, ImportSent { overwrite: bool, }, ImportAnswered, Verified { equal: bool, }, RecordWritten, RecordFailed { code: String, }, TagRecordWritten { provider: String, }, TagRecordFailed { provider: String, code: String, }, ChildrenSettling { children: Vec<String>, }, ChildChecked { name: String, status: ChildStatus, }, RollbackStarted { cause: RollbackCause, }, ProjectRestored { equal: bool, }, TagGroupsRestored { providers: Vec<String>, }, TagProviderRestored { provider: String, action: &'static str, }, RollbackVerified { equal: bool, }, TagDeleteSent { provider: String, paths: Vec<String>, rollback: bool, }, TagDeleteAnswered { provider: String, clean: bool, deleted: usize, }, HostPreImageWritten { files: usize, }, JournalWritten { state: &'static str, }, JournalCleared, BackupWaitStarted { budget_s: u64, }, BackupResync { ok: bool, code: Option<String>, }, BackupVerdict { converged: bool, reason: Option<&'static str>, }, Finished { outcome: ProjectOutcome, },
}
Expand description

A step of a run, for the events log and the observer.

The fields are names, ids, counts and hashes only: never a project file, a secret or a gateway response body.

Variants§

§

DesignersPoll

The Designer list was read under --designers wait (25-14). Heard as it happens and logged once the run directory exists.

Fields

§open: usize

How many sessions were open at that read.

§

DesignersProceed

--designers proceed went ahead over these open sessions (D-15).

Fields

§sessions: Vec<DesignerSeen>

(user, project, host) of each open session.

§

DesignersSkipped

The Designer check did not run: a record run does not touch the project.

§

RunStarted

The run directory exists and the run is about to start.

Fields

§run_id: String

The run’s id.

§action: ProjectAction

What the run will do.

§

PreImageExported

The live project was saved into the run directory.

Fields

§bytes: usize

Size of the saved export.

§

TagsPreImageExported

An owned tag provider’s live export was saved into the run directory (export/tags/<P>.json) before any tag write (Phase 26).

Fields

§provider: String

The provider.

§bytes: usize

Size of the saved export.

§

TagImportSent

A tag import request is about to be sent.

Fields

§provider: String

The provider.

§path: String

The provider-relative parent path the nodes go below (empty at the provider root).

§policy: &'static str

The collision policy, as the gateway spells it.

§nodes: usize

How many planned nodes the body carries.

§carry: bool

Whether live values were carried into the body (R3-CARRY).

§

TagValuesCarried

A fresh export of the provider was read right before a carried batch, and the live values of its nodes were put into the body (R3-CARRY, R3-RACE). Paths and counts only, never a value.

Fields

§provider: String

The provider.

§path: String

The provider-relative parent path of the batch.

§nodes: usize

How many nodes had their values carried.

§

TagProviderSettingsApplied

An owned provider’s settings were created or modified and read back equal to the repo’s (26-10).

Fields

§provider: String

The provider.

§action: &'static str

create or modify.

§

TagGroupsWritten

The owned providers’ tag-group units were committed, scanned and read back (26-10).

Fields

§providers: Vec<String>

The providers whose groups changed, byte-sorted.

§written: usize

Unit files written.

§deleted: usize

Unit files deleted.

§

TagImportAnswered

The gateway answered a tag import.

Fields

§provider: String

The provider.

§clean: bool

Whether the answer reported no failure and no bad quality code.

§

TagsVerified

An owned provider was read back after the tag writes and compared with the repo and its pre-image.

Fields

§provider: String

The provider.

§equal: bool

Whether every repo node equals the export in configuration and every drift node its pre-image.

§

ImportSent

The import request is about to be sent.

Fields

§overwrite: bool

True when the live project is replaced, false when it is created.

§

ImportAnswered

The gateway answered the import.

§

Verified

The project was read back and compared with the artifact.

Fields

§equal: bool

Whether the canonical digests are equal.

§

RecordWritten

The release record was written.

§

RecordFailed

The release record could not be written.

Fields

§code: String

The error’s slug.

§

TagRecordWritten

The tag record of an owned provider was written (26-08).

Fields

§provider: String

The provider.

§

TagRecordFailed

The tag record of an owned provider could not be written.

Fields

§provider: String

The provider.

§code: String

The error’s slug.

§

ChildrenSettling

The sweep found projects that inherit from the deployed one and is reading their exports until they settle (D-06, K7).

Fields

§children: Vec<String>

The children, byte-sorted.

§

ChildChecked

One child was compared with its release record.

Fields

§name: String

The child’s name.

§status: ChildStatus

How it compared.

§

RollbackStarted

The run failed after its first tag write and its automatic rollback starts (26-11).

Fields

§cause: RollbackCause

Why.

§

ProjectRestored

The rollback imported the project’s pre-image again and read it back (26-11).

Fields

§equal: bool

Whether it reads back as the pre-image.

§

TagGroupsRestored

The rollback put the run’s tag-group units back from its snapshot (26-11).

Fields

§providers: Vec<String>

The providers whose groups the run changed, byte-sorted.

§

TagProviderRestored

The rollback put an owned provider’s settings back (modify) or deleted a provider the run created (delete) (26-11).

Fields

§provider: String

The provider.

§action: &'static str

modify or delete.

§

RollbackVerified

The rollback read the owned providers back and compared them with their pre-images (26-11).

Fields

§equal: bool

Whether every node equals its pre-image.

§

TagDeleteSent

A tagDelete route call was sent (26-19): the provider and the provider-relative paths it named; rollback for the removal of what a failed run created.

Fields

§provider: String

The provider.

§paths: Vec<String>

The paths the call named, in request order.

§rollback: bool

Whether the call is part of a rollback.

§

TagDeleteAnswered

The tagDelete route answered a call (26-19).

Fields

§provider: String

The provider.

§clean: bool

Every result was a clean delete.

§deleted: usize

How many paths it removed.

§

HostPreImageWritten

The run’s pre-image was written to the gateway host (26-12): every file of the set, run.json last, before the first gateway write.

Fields

§files: usize

How many files the set holds, run.json included.

§

JournalWritten

The host journal was written (26-12).

Fields

§state: &'static str

applying or rolling_back.

§

JournalCleared

The host journal was cleared after a green run or a verified rollback (26-12).

§

BackupWaitStarted

The wait for the backup’s copy of the owned tags began (26-13).

Fields

§budget_s: u64

The budget of one wait, in seconds.

§

BackupResync

The one resync request was sent to the master (26-13).

Fields

§ok: bool

The request was accepted.

§code: Option<String>

The error code when it was not.

§

BackupVerdict

The wait for the backup ended (26-13).

Fields

§converged: bool

The backup holds the master’s owned tags.

§reason: Option<&'static str>

Why not: unreachable, sync_exhausted, not_syncing or content_differs.

§

Finished

The run ended.

Fields

§outcome: ProjectOutcome

How it ended.

Implementations§

Source§

impl ProjectsEvent

Source

pub fn name(&self) -> &'static str

The event name events.ndjson carries.

Trait Implementations§

Source§

impl Clone for ProjectsEvent

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 Debug for ProjectsEvent

Source§

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

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

impl Eq for ProjectsEvent

Source§

impl PartialEq for ProjectsEvent

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 StructuralPartialEq for ProjectsEvent

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<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more