pub enum StopSignal {
ByName(String),
ById(usize),
}Expand description
Represents a STOPSIGNAL instruction.
use nanite_docker::{StopSignal, Instruction};
let stop_signal = StopSignal::ByName("SIGTERM".into());
let stop_signal_built = format!("{stop_signal}");
assert_eq!(stop_signal_built, r#"STOPSIGNAL SIGTERM"#);
let stop_signal = StopSignal::ById(15);
let stop_signal_built = format!("{stop_signal}");
assert_eq!(stop_signal_built, r#"STOPSIGNAL 15"#);Variants§
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 · 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
Auto Trait Implementations§
impl Freeze for StopSignal
impl RefUnwindSafe for StopSignal
impl Send for StopSignal
impl Sync for StopSignal
impl Unpin 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