pub struct RunSource { /* private fields */ }Implementations§
Source§impl RunSource
impl RunSource
pub fn new(database_path: &Path) -> Result<Self>
pub fn single(database_path: &Path, run_id: &str) -> Result<Self>
pub fn database_path(&self) -> &Path
pub fn get(&self, run_id: &str) -> Option<&RunEntry>
pub fn ordered_run_ids(&self) -> Vec<String>
pub fn summaries(&self) -> Vec<Value>
pub fn select(&mut self, run_id: &str) -> Result<()>
pub fn watch(&mut self, run_id: &str) -> Result<()>
pub fn unwatch(&mut self, run_id: &str)
pub fn watcher_count(&self, run_id: &str) -> usize
pub fn deltas_after( &self, run_id: &str, revision: u64, ) -> Result<ViewerDeltaRead>
pub fn page( &mut self, run_id: &str, kind: PageKind, cursor: u64, ) -> Result<(u64, ProjectionPage)>
pub fn stats(&self) -> SourceStats
pub fn load_error(&self, run_id: &str) -> Option<&str>
pub fn is_stale(&self, run_id: &str) -> bool
pub fn cursor(&self, run_id: &str) -> WindowCursor
pub fn request_window( &mut self, run_id: &str, cursor: WindowCursor, ) -> Result<()>
pub fn drain(&mut self)
pub fn refresh_all(&mut self) -> RefreshOutcome
Auto Trait Implementations§
impl !Freeze for RunSource
impl !RefUnwindSafe for RunSource
impl !Sync for RunSource
impl !UnwindSafe for RunSource
impl Send for RunSource
impl Unpin for RunSource
impl UnsafeUnpin 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