pub struct RunSource { /* private fields */ }Implementations§
Source§impl RunSource
impl RunSource
pub fn new(runs_dir: &Path) -> Self
Sourcepub fn single(bundle_dir: &Path) -> Result<Self>
pub fn single(bundle_dir: &Path) -> Result<Self>
Open a source for a single bundle directory (no listing).
pub fn runs_dir(&self) -> &Path
pub fn get(&self, run_id: &str) -> Option<&RunEntry>
Sourcepub fn ordered_run_ids(&self) -> Vec<String>
pub fn ordered_run_ids(&self) -> Vec<String>
Run ids ordered newest first (startedAt desc, then run id desc).
pub fn summaries(&self) -> Vec<Value>
Sourcepub fn scan(&mut self) -> bool
pub fn scan(&mut self) -> bool
Discover new bundles and drop deleted ones. Returns whether the run listing membership changed. No-op in single-bundle mode.
Sourcepub fn refresh_all(&mut self) -> RefreshOutcome
pub fn refresh_all(&mut self) -> RefreshOutcome
Rescan and refresh every run, collecting patches.
Auto Trait Implementations§
impl Freeze for RunSource
impl RefUnwindSafe for RunSource
impl Send for RunSource
impl Sync for RunSource
impl Unpin for RunSource
impl UnsafeUnpin for RunSource
impl UnwindSafe for RunSource
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more