pub struct AdmEnable<'a> { /* private fields */ }
Expand description
Created by Adm::enable, enables the service instance(s).
The assigned restarter will attempt to bring the service to the online state.
Implementations§
source§impl<'a> AdmEnable<'a>
impl<'a> AdmEnable<'a>
sourcepub fn synchronous(&mut self) -> &mut Self
pub fn synchronous(&mut self) -> &mut Self
Waits for each enabled instance to enter either online
or degraded
state.
sourcepub fn temporary(&mut self) -> &mut Self
pub fn temporary(&mut self) -> &mut Self
Temporarily enables each service instance, meaning that the decision to enable will only last until reboot.
sourcepub fn as_command<S, I>(&mut self, selection: AdmSelection<S, I>) -> Commandwhere
S: AsRef<str>,
I: IntoIterator<Item = S>,
pub fn as_command<S, I>(&mut self, selection: AdmSelection<S, I>) -> Commandwhere S: AsRef<str>, I: IntoIterator<Item = S>,
Returns the command, without running it
sourcepub fn run<S, I>(
&mut self,
selection: AdmSelection<S, I>
) -> Result<(), AdmError>where
S: AsRef<str>,
I: IntoIterator<Item = S>,
pub fn run<S, I>( &mut self, selection: AdmSelection<S, I> ) -> Result<(), AdmError>where S: AsRef<str>, I: IntoIterator<Item = S>,
Runs the command.
Auto Trait Implementations§
impl<'a> RefUnwindSafe for AdmEnable<'a>
impl<'a> Send for AdmEnable<'a>
impl<'a> Sync for AdmEnable<'a>
impl<'a> Unpin for AdmEnable<'a>
impl<'a> UnwindSafe for AdmEnable<'a>
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