Struct smf::AdmEnable [−][src]
pub struct AdmEnable<'a> { /* fields omitted */ }
Created by Adm::enable, enables the service instance(s).
The assigned restarter will attempt to bring the service to the online state.
Implementations
impl<'a> AdmEnable<'a>
[src]
impl<'a> AdmEnable<'a>
[src]pub fn synchronous(&mut self) -> &mut Self
[src]
pub fn synchronous(&mut self) -> &mut Self
[src]Waits for each enabled instance to enter either online
or degraded
state.
pub fn temporary(&mut self) -> &mut Self
[src]
pub fn temporary(&mut self) -> &mut Self
[src]Temporarily enables each service instance, meaning that the decision to enable will only last until reboot.
pub fn run<S, I>(
&mut self,
selection: AdmSelection<S, I>
) -> Result<(), AdmError> where
S: AsRef<str>,
I: IntoIterator<Item = S>,
[src]
pub fn run<S, I>(
&mut self,
selection: AdmSelection<S, I>
) -> Result<(), AdmError> where
S: AsRef<str>,
I: IntoIterator<Item = S>,
[src]Runs the command.