pub enum StopSignal {
SIGINT,
SIGTERM,
SIGKILL,
SendKeys(Vec<Key>),
HardKill,
Cmd(String),
}Variants§
SIGINT
SIGTERM
SIGKILL
SendKeys(Vec<Key>)
HardKill
Cmd(String)
Run a shell command as the stop action. Useful for tools like
podman compose that don’t reliably respond to signals but do have
an explicit teardown command (e.g. podman compose down). The main
process is expected to exit on its own once the stop command
completes (e.g. compose up exits when containers go away).
Implementations§
Trait Implementations§
Source§impl Clone for StopSignal
impl Clone for StopSignal
Source§fn clone(&self) -> StopSignal
fn clone(&self) -> StopSignal
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StopSignal
impl Debug for StopSignal
Source§impl Default for StopSignal
impl Default for StopSignal
Source§fn default() -> StopSignal
fn default() -> StopSignal
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StopSignal
impl RefUnwindSafe for StopSignal
impl Send for StopSignal
impl Sync for StopSignal
impl Unpin for StopSignal
impl UnsafeUnpin for StopSignal
impl UnwindSafe for StopSignal
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<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