pub enum Command {
Pause {
target: Target,
jobs: RunningJobs,
reply: Sender<Result<Paused, ControlError>>,
},
Resume {
target: Target,
reply: Sender<Result<(), ControlError>>,
},
Reseed {
profile: String,
reply: Sender<Result<(), ControlError>>,
},
CleanCache {
name: String,
reply: Sender<Result<(), ControlError>>,
},
ReplaceConfig {
config: Box<Config>,
memory_max: Option<u64>,
cpus: Option<u64>,
commit: Commit,
running: RunningSlots,
reply: Sender<Result<Option<String>, ControlError>>,
},
RemoveRecords {
selection: RecordSelection,
reply: Sender<Result<RemovedRecords, ControlError>>,
},
OpenShell {
job: u64,
size: TtySize,
reply: Sender<Result<Tty, ControlError>>,
},
CloseShell {
container: String,
},
}Expand description
A command the engine carries out between ticks or while a tick waits for GitHub, 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.
Resume
Resume one repository or all.
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.
Fields
§
running: RunningSlotsWhether it may leave runners in slots it does not have.
RemoveRecords
Remove records of failed jobs.
Fields
§
selection: RecordSelectionWhich.
§
reply: Sender<Result<RemovedRecords, ControlError>>The answer.
OpenShell
Start a shell in a job’s record, if the budget has room for it.
Fields
§
reply: Sender<Result<Tty, ControlError>>The shell’s terminal.
CloseShell
Remove a shell’s container: its terminal closed.
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