#[non_exhaustive]pub enum ContainerProcess {
Image,
Started {
entrypoint: Vec<String>,
command: Vec<String>,
},
Idle,
Command(CommandLine),
One(Daemon),
Supervised {
daemons: Vec<Daemon>,
command: Option<CommandLine>,
},
}Expand description
The process a container runs.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Image
The official image’s own entrypoint and command (a catalogue entry’s image form).
Started
A catalogue entry’s official image whose start steps Isoloom’s runner runs at each
start (image.start: run), then execs the image’s own entrypoint with its command.
Fields
Idle
Nothing of its own: the container is kept running idle, a machine to work from.
Command(CommandLine)
The machine’s command, as the container’s command.
One(Daemon)
One daemon: the runner runs start, then execs the daemon’s foreground form.
Supervised
Several daemons (or one and the command) under the engine’s init (tini): the runner runs
start, starts each in order, and exits when one does.
Implementations§
Source§impl ContainerProcess
impl ContainerProcess
Trait Implementations§
Source§impl Clone for ContainerProcess
impl Clone for ContainerProcess
Source§impl Debug for ContainerProcess
impl Debug for ContainerProcess
impl Eq for ContainerProcess
Source§impl PartialEq for ContainerProcess
impl PartialEq for ContainerProcess
impl StructuralPartialEq for ContainerProcess
Auto Trait Implementations§
impl Freeze for ContainerProcess
impl RefUnwindSafe for ContainerProcess
impl Send for ContainerProcess
impl Sync for ContainerProcess
impl Unpin for ContainerProcess
impl UnsafeUnpin for ContainerProcess
impl UnwindSafe for ContainerProcess
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.