pub enum StopMode {
Graceful,
Terminate,
Kill,
}Expand description
Controls how stop() shuts down a container.
Variants§
Graceful
Send SIGRTMIN+4 to the container leader (graceful poweroff).
Terminate
Call TerminateMachine (SIGTERM to nspawn leader).
Kill
Send SIGKILL to all processes in the container.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StopMode
impl RefUnwindSafe for StopMode
impl Send for StopMode
impl Sync for StopMode
impl Unpin for StopMode
impl UnsafeUnpin for StopMode
impl UnwindSafe for StopMode
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