Struct smf::AdmDisable [−][src]
pub struct AdmDisable<'a> { /* fields omitted */ }
Created by Adm::disable, disables the service instance(s).
The assigned restarter will attempt to bring the service to the disabled state.
Implementations
impl<'a> AdmDisable<'a>
[src]
impl<'a> AdmDisable<'a>
[src]pub fn comment<S: AsRef<str>>(&mut self, comment: S) -> &mut Self
[src]
pub fn comment<S: AsRef<str>>(&mut self, comment: S) -> &mut Self
[src]Records a general free-form comment in the service configuration.
pub fn synchronous(&mut self) -> &mut Self
[src]
pub fn synchronous(&mut self) -> &mut Self
[src]Waits for each instance to enter either the disabled
state.
pub fn temporary(&mut self) -> &mut Self
[src]
pub fn temporary(&mut self) -> &mut Self
[src]Temporarily disable each service instance, meaning that the decision to disable 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.