pub enum DaemonCommand {
RegisterRepo {
repo_path: ValidatedPath,
},
UnregisterRepo {
repo_path: ValidatedPath,
},
ListRepos,
Status {
repo_path: ValidatedPath,
known_generation: Option<u64>,
},
QueueJob {
repo_path: ValidatedPath,
job: JobKind,
},
HealthCheck,
RepoHealth {
repo_path: ValidatedPath,
},
Metrics,
FsMonitorSnapshot {
repo_path: ValidatedPath,
last_seen_generation: Option<u64>,
},
FetchLogs {
repo_path: ValidatedPath,
limit: usize,
},
Shutdown,
}Expand description
All commands the CLI/tray can send to the daemon process.
Variants§
RegisterRepo
Fields
§
repo_path: ValidatedPathUnregisterRepo
Fields
§
repo_path: ValidatedPathListRepos
Status
QueueJob
HealthCheck
RepoHealth
Request detailed health diagnostics for a specific repository.
Fields
§
repo_path: ValidatedPathMetrics
FsMonitorSnapshot
FetchLogs
Shutdown
Request graceful daemon shutdown.
Trait Implementations§
Source§impl Clone for DaemonCommand
impl Clone for DaemonCommand
Source§fn clone(&self) -> DaemonCommand
fn clone(&self) -> DaemonCommand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DaemonCommand
impl Debug for DaemonCommand
Source§impl<'de> Deserialize<'de> for DaemonCommand
impl<'de> Deserialize<'de> for DaemonCommand
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DaemonCommand
impl PartialEq for DaemonCommand
Source§impl Serialize for DaemonCommand
impl Serialize for DaemonCommand
impl Eq for DaemonCommand
impl StructuralPartialEq for DaemonCommand
Auto Trait Implementations§
impl Freeze for DaemonCommand
impl RefUnwindSafe for DaemonCommand
impl Send for DaemonCommand
impl Sync for DaemonCommand
impl Unpin for DaemonCommand
impl UnwindSafe for DaemonCommand
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