pub enum UnitSwitchMethod {
Reload,
Restart,
StopStart,
StopOnly,
KeepOld,
}
Expand description
How to switch a unit.
Variants§
Reload
Reload the unit if it is already running, otherwise start it.
Restart
Restart the unit if it is already running, otherwise start it.
StopStart
Stop the old unit (if it exists) and start the new unit.
StopOnly
Stop the old unit (if it exists) but do not start the new unit
KeepOld
Leave the old unit running, ignoring the new unit. If no old unit exists, then the new unit is started.
Trait Implementations§
Source§impl Clone for UnitSwitchMethod
impl Clone for UnitSwitchMethod
Source§fn clone(&self) -> UnitSwitchMethod
fn clone(&self) -> UnitSwitchMethod
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 UnitSwitchMethod
impl Debug for UnitSwitchMethod
Source§impl PartialEq for UnitSwitchMethod
impl PartialEq for UnitSwitchMethod
impl Copy for UnitSwitchMethod
impl Eq for UnitSwitchMethod
impl StructuralPartialEq for UnitSwitchMethod
Auto Trait Implementations§
impl Freeze for UnitSwitchMethod
impl RefUnwindSafe for UnitSwitchMethod
impl Send for UnitSwitchMethod
impl Sync for UnitSwitchMethod
impl Unpin for UnitSwitchMethod
impl UnwindSafe for UnitSwitchMethod
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