Skip to main content

Snapshot

Struct Snapshot 

Source
pub struct Snapshot {
    pub origin: Origin,
    pub catalog: Catalog,
    pub scope: Scope,
    pub runs: Vec<RunSummary>,
    pub selected_id: Option<RunId>,
    pub selected: Option<Opened>,
}
Expand description

One consistent read: the catalog, the scope’s Runs page and the selected Run with its tree.

Fields§

§origin: Origin§catalog: Catalog§scope: Scope§runs: Vec<RunSummary>§selected_id: Option<RunId>§selected: Option<Opened>

The selected Run when it was read again: its requests, projected tree and a share in its memory, kept after the rest so the memory goes back once nothing shows the Run.

Auto Trait Implementations§

§

impl Forget for Snapshot

§

impl Freeze for Snapshot
where *const u8 is !null: Freeze, PhantomData<u8>: Freeze, *const ArcInner<Vec<CatalogRun>> is !null: Freeze, PhantomData<ArcInner<Vec<CatalogRun>>>: Freeze, *const LeafNode<PathBuf, Identity> is !null: Freeze, PhantomData<(Owned, LeafOrInternal)>: Freeze, PhantomData<Box<(PathBuf, Identity)>>: Freeze, *const LeafNode<PathBuf, Vec<Worktree>> is !null: Freeze, PhantomData<Box<(PathBuf, Vec<Worktree>)>>: Freeze, PhantomData<CatalogRow>: Freeze, *const LeafNode<Scope, BTreeSet<PathBuf>> is !null: Freeze, PhantomData<Box<(Scope, BTreeSet<PathBuf>)>>: Freeze, *const LeafNode<Repository, SetValZST> is !null: Freeze, PhantomData<Box<(Repository, SetValZST)>>: Freeze, PhantomData<RunSummary>: Freeze, NonZero<i32>: Freeze, NonZero<u32>: Freeze, PhantomData<ArtifactName>: Freeze, PhantomData<EvalId>: Freeze, *const ArcInner<Graph> is !null: Freeze, PhantomData<ArcInner<Graph>>: Freeze, *const LeafNode<ProfileKind, SetValZST> is !null: Freeze, PhantomData<Box<(ProfileKind, SetValZST)>>: Freeze, *const LeafNode<String, Value> is !null: Freeze, PhantomData<Box<(String, Value)>>: Freeze, PhantomData<ArtifactValidation>: Freeze, PhantomData<EvalValidation>: Freeze, PhantomData<StoppedBackend>: Freeze, *const LeafNode<EvalId, RequestStatus> is !null: Freeze, PhantomData<Box<(EvalId, RequestStatus)>>: Freeze, PhantomData<Arc<Request>>: Freeze, PhantomData<Unreadable>: Freeze, PhantomData<RequestView>: Freeze, *const ArcInner<Vec<Node>> is !null: Freeze, PhantomData<ArcInner<Vec<Node>>>: Freeze, *const ArcInner<Release> is !null: Freeze, PhantomData<ArcInner<Release>>: Freeze,

§

impl Move for Snapshot

§

impl RefUnwindSafe for Snapshot

§

impl Send for Snapshot
where RawVecInner: Send, Arc<Vec<CatalogRun>>: Send, NodeRef<Owned, PathBuf, Identity, LeafOrInternal>: Send, BoxRaw<(PathBuf, Identity)>: Send, NodeRef<Owned, PathBuf, Vec<Worktree>, LeafOrInternal>: Send, BoxRaw<(PathBuf, Vec<Worktree>)>: Send, NodeRef<Owned, Signoff, SetValZST, LeafOrInternal>: Send, BoxRaw<(Signoff, SetValZST)>: Send, NodeRef<Owned, Scope, BTreeSet<PathBuf>, LeafOrInternal>: Send, BoxRaw<(Scope, BTreeSet<PathBuf>)>: Send, NodeRef<Owned, Repository, SetValZST, LeafOrInternal>: Send, BoxRaw<(Repository, SetValZST)>: Send, NonZero<i32>: Send, NodeRef<Owned, RequestStatus, u64, LeafOrInternal>: Send, BoxRaw<(RequestStatus, u64)>: Send, NonZero<u32>: Send, Arc<Graph>: Send, NodeRef<Owned, ProfileKind, SetValZST, LeafOrInternal>: Send, BoxRaw<(ProfileKind, SetValZST)>: Send, NodeRef<Owned, String, Value, LeafOrInternal>: Send, BoxRaw<(String, Value)>: Send, NodeRef<Owned, EvalId, RequestStatus, LeafOrInternal>: Send, BoxRaw<(EvalId, RequestStatus)>: Send, Arc<Request>: Send, Arc<Execution>: Send, Arc<Eval>: Send, Arc<Artifact>: Send, Arc<Vec<Node>>: Send, Arc<Release>: Send,

§

impl Sync for Snapshot
where RawVecInner: Sync, Arc<Vec<CatalogRun>>: Sync, NodeRef<Owned, PathBuf, Identity, LeafOrInternal>: Sync, BoxRaw<(PathBuf, Identity)>: Sync, NodeRef<Owned, PathBuf, Vec<Worktree>, LeafOrInternal>: Sync, BoxRaw<(PathBuf, Vec<Worktree>)>: Sync, NodeRef<Owned, Signoff, SetValZST, LeafOrInternal>: Sync, BoxRaw<(Signoff, SetValZST)>: Sync, NodeRef<Owned, Scope, BTreeSet<PathBuf>, LeafOrInternal>: Sync, BoxRaw<(Scope, BTreeSet<PathBuf>)>: Sync, NodeRef<Owned, Repository, SetValZST, LeafOrInternal>: Sync, BoxRaw<(Repository, SetValZST)>: Sync, NonZero<i32>: Sync, NodeRef<Owned, RequestStatus, u64, LeafOrInternal>: Sync, BoxRaw<(RequestStatus, u64)>: Sync, NonZero<u32>: Sync, Arc<Graph>: Sync, NodeRef<Owned, ProfileKind, SetValZST, LeafOrInternal>: Sync, BoxRaw<(ProfileKind, SetValZST)>: Sync, NodeRef<Owned, String, Value, LeafOrInternal>: Sync, BoxRaw<(String, Value)>: Sync, NodeRef<Owned, EvalId, RequestStatus, LeafOrInternal>: Sync, BoxRaw<(EvalId, RequestStatus)>: Sync, Arc<Request>: Sync, Arc<Execution>: Sync, Arc<Eval>: Sync, Arc<Artifact>: Sync, Arc<Vec<Node>>: Sync, Arc<Release>: Sync,

§

impl Unpin for Snapshot
where *const u8 is !null: Unpin, Arc<Vec<CatalogRun>>: Unpin, *const LeafNode<PathBuf, Identity> is !null: Unpin, Box<(PathBuf, Identity)>: Unpin, *const LeafNode<PathBuf, Vec<Worktree>> is !null: Unpin, Box<(PathBuf, Vec<Worktree>)>: Unpin, *const LeafNode<Signoff, SetValZST> is !null: Unpin, Box<(Signoff, SetValZST)>: Unpin, *const LeafNode<Scope, BTreeSet<PathBuf>> is !null: Unpin, Box<(Scope, BTreeSet<PathBuf>)>: Unpin, *const LeafNode<Repository, SetValZST> is !null: Unpin, Box<(Repository, SetValZST)>: Unpin, NonZero<i32>: Unpin, *const LeafNode<RequestStatus, u64> is !null: Unpin, Box<(RequestStatus, u64)>: Unpin, NonZero<u32>: Unpin, Arc<Graph>: Unpin, *const LeafNode<ProfileKind, SetValZST> is !null: Unpin, Box<(ProfileKind, SetValZST)>: Unpin, *const LeafNode<String, Value> is !null: Unpin, Box<(String, Value)>: Unpin, *const LeafNode<EvalId, RequestStatus> is !null: Unpin, Box<(EvalId, RequestStatus)>: Unpin, Arc<Request>: Unpin, Arc<Execution>: Unpin, Arc<Eval>: Unpin, Arc<Artifact>: Unpin, Arc<Vec<Node>>: Unpin, Arc<Release>: Unpin,

§

impl UnsafeUnpin for Snapshot
where *const u8 is !null: UnsafeUnpin, PhantomData<u8>: UnsafeUnpin, *const ArcInner<Vec<CatalogRun>> is !null: UnsafeUnpin, PhantomData<ArcInner<Vec<CatalogRun>>>: UnsafeUnpin, *const LeafNode<PathBuf, Identity> is !null: UnsafeUnpin, PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin, PhantomData<Box<(PathBuf, Identity)>>: UnsafeUnpin, *const LeafNode<PathBuf, Vec<Worktree>> is !null: UnsafeUnpin, PhantomData<Box<(PathBuf, Vec<Worktree>)>>: UnsafeUnpin, PhantomData<CatalogRow>: UnsafeUnpin, *const LeafNode<Scope, BTreeSet<PathBuf>> is !null: UnsafeUnpin, PhantomData<Box<(Scope, BTreeSet<PathBuf>)>>: UnsafeUnpin, *const LeafNode<Repository, SetValZST> is !null: UnsafeUnpin, PhantomData<Box<(Repository, SetValZST)>>: UnsafeUnpin, PhantomData<RunSummary>: UnsafeUnpin, NonZeroI32Inner: UnsafeUnpin, NonZeroU32Inner: UnsafeUnpin, PhantomData<ArtifactName>: UnsafeUnpin, PhantomData<EvalId>: UnsafeUnpin, *const ArcInner<Graph> is !null: UnsafeUnpin, PhantomData<ArcInner<Graph>>: UnsafeUnpin, *const LeafNode<ProfileKind, SetValZST> is !null: UnsafeUnpin, PhantomData<Box<(ProfileKind, SetValZST)>>: UnsafeUnpin, *const LeafNode<String, Value> is !null: UnsafeUnpin, PhantomData<Box<(String, Value)>>: UnsafeUnpin, PhantomData<ArtifactValidation>: UnsafeUnpin, PhantomData<EvalValidation>: UnsafeUnpin, PhantomData<StoppedBackend>: UnsafeUnpin, *const LeafNode<EvalId, RequestStatus> is !null: UnsafeUnpin, PhantomData<Box<(EvalId, RequestStatus)>>: UnsafeUnpin, PhantomData<Arc<Request>>: UnsafeUnpin, PhantomData<Unreadable>: UnsafeUnpin, PhantomData<RequestView>: UnsafeUnpin, *const ArcInner<Vec<Node>> is !null: UnsafeUnpin, PhantomData<ArcInner<Vec<Node>>>: UnsafeUnpin, *const ArcInner<Release> is !null: UnsafeUnpin, PhantomData<ArcInner<Release>>: UnsafeUnpin,

§

impl UnwindSafe for Snapshot

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> ErasedDestructor for T
where T: 'static,

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> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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> WasmCompatSend for T
where T: Send,

Source§

impl<T> WasmCompatSync for T
where T: Sync,

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