pub struct Input {
pub state: PathBuf,
pub initial: Option<PathBuf>,
pub catalog: Catalog,
pub initialized: bool,
pub page: Page,
pub full: bool,
pub displayed: Option<RunId>,
pub changed: Changed,
pub runs: Option<Vec<RunSummary>>,
}Expand description
Everything one snapshot read needs; the caller keeps the catalog between reads.
Fields§
§state: PathBuf§initial: Option<PathBuf>cwd, --repo or --all (None): only the first selection.
catalog: Catalog§initialized: boolFalse before the first accepted snapshot, which picks the initial scope.
page: Page§full: boolRead the database catalog and the shown Run afresh; Git discovery stays cached until
Loader::rescan.
displayed: Option<RunId>The Run the caller already shows; it is read again only when a hint named it.
changed: ChangedWhat the change hints since the last read named.
runs: Option<Vec<RunSummary>>The page the caller already shows, reused while the database is unchanged.
Auto Trait Implementations§
impl Forget for Input
impl Freeze for Inputwhere
*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,
*const LeafNode<RunId, SetValZST> is !null: Freeze,
PhantomData<Box<(RunId, SetValZST)>>: Freeze,
PhantomData<RunSummary>: Freeze,
impl Move for Input
impl RefUnwindSafe for Input
impl Send for Inputwhere
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,
NodeRef<Owned, RunId, SetValZST, LeafOrInternal>: Send,
BoxRaw<(RunId, SetValZST)>: Send,
NonZero<i32>: Send,
NodeRef<Owned, RequestStatus, u64, LeafOrInternal>: Send,
BoxRaw<(RequestStatus, u64)>: Send,
impl Sync for Inputwhere
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,
NodeRef<Owned, RunId, SetValZST, LeafOrInternal>: Sync,
BoxRaw<(RunId, SetValZST)>: Sync,
NonZero<i32>: Sync,
NodeRef<Owned, RequestStatus, u64, LeafOrInternal>: Sync,
BoxRaw<(RequestStatus, u64)>: Sync,
impl Unpin for Inputwhere
*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,
*const LeafNode<RunId, SetValZST> is !null: Unpin,
Box<(RunId, SetValZST)>: Unpin,
NonZero<i32>: Unpin,
*const LeafNode<RequestStatus, u64> is !null: Unpin,
Box<(RequestStatus, u64)>: Unpin,
impl UnsafeUnpin for Inputwhere
*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,
*const LeafNode<RunId, SetValZST> is !null: UnsafeUnpin,
PhantomData<Box<(RunId, SetValZST)>>: UnsafeUnpin,
PhantomData<RunSummary>: UnsafeUnpin,
impl UnwindSafe for Inputwhere
RawVecInner: UnwindSafe,
Arc<Vec<CatalogRun>>: UnwindSafe,
BTreeMap<PathBuf, Identity>: UnwindSafe,
BTreeMap<PathBuf, Vec<Worktree>>: UnwindSafe,
BTreeMap<Signoff, SetValZST>: UnwindSafe,
BTreeMap<Scope, BTreeSet<PathBuf>>: UnwindSafe,
BTreeMap<Repository, SetValZST>: UnwindSafe,
BTreeMap<RunId, SetValZST>: UnwindSafe,
NonZero<i32>: UnwindSafe,
BTreeMap<RequestStatus, u64>: UnwindSafe,
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