pub struct Runtime<S: MetadataStore> { /* private fields */ }Expand description
Background scheduler loop.
Implementations§
Source§impl<S: MetadataStore> Runtime<S>
impl<S: MetadataStore> Runtime<S>
pub fn new(store: S, log_tree: Option<Tree>) -> Self
pub fn with_watcher( store: S, watcher: WatcherRef, log_tree: Option<Tree>, ) -> Self
pub fn with_notifications( store: S, notifications: Option<UnboundedSender<DaemonNotification>>, fsmonitor_helper: Option<String>, log_tree: Option<Tree>, ) -> Self
pub fn with_notifications_and_data_dir( store: S, notifications: Option<UnboundedSender<DaemonNotification>>, fsmonitor_helper: Option<String>, log_tree: Option<Tree>, data_dir: PathBuf, ) -> Self
pub fn with_watcher_and_notifications( store: S, watcher: WatcherRef, notifications: Option<UnboundedSender<DaemonNotification>>, fsmonitor_helper: Option<String>, log_tree: Option<Tree>, ) -> Self
pub fn with_data_dir( store: S, watcher: WatcherRef, notifications: Option<UnboundedSender<DaemonNotification>>, fsmonitor_helper: Option<String>, log_tree: Option<Tree>, data_dir: Option<PathBuf>, ) -> Self
pub fn shutdown_signal(&self) -> Shutdown
pub fn service_handle(&self) -> InProcessService<S>
pub async fn run(self)
Sourcepub fn compute_repo_health(&self, repo_path: &Path) -> DaemonResponse
pub fn compute_repo_health(&self, repo_path: &Path) -> DaemonResponse
Computes repository health using both daemon state and runtime state.
Auto Trait Implementations§
impl<S> !Freeze for Runtime<S>
impl<S> !RefUnwindSafe for Runtime<S>
impl<S> Send for Runtime<S>
impl<S> Sync for Runtime<S>
impl<S> Unpin for Runtime<S>
impl<S> !UnwindSafe for Runtime<S>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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