pub enum Command {
Pause {
target: Target,
jobs: RunningJobs,
reply: Sender<Result<Paused, ControlError>>,
},
Reseed {
profile: String,
reply: Sender<Result<(), ControlError>>,
},
CleanCache {
name: String,
reply: Sender<Result<(), ControlError>>,
},
ReplaceConfig {
config: Box<Config>,
memory_max: Option<u64>,
commit: Commit,
reply: Sender<Result<Option<String>, ControlError>>,
},
}Expand description
A command the engine carries out between ticks, with where its answer goes.
Variants§
Pause
Pause one repository or all; with RunningJobs::Kill, cancel their running jobs.
Fields
§
jobs: RunningJobsCancel running jobs, or refuse while there are any.
§
reply: Sender<Result<Paused, ControlError>>The answer.
Reseed
Make slot 1’s layers the profile’s snapshot once its slots are free.
CleanCache
Remove a slot’s volume or a shared cache’s, unless a runner uses it.
ReplaceConfig
Write a new, validated config to its file and run with it, with no tick in between.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Command
impl !Sync for Command
impl !UnwindSafe for Command
impl Freeze for Command
impl Send for Command
impl Unpin for Command
impl UnsafeUnpin for Command
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