pub struct AdmClear<'a> { /* private fields */ }
Expand description
Created by Adm::clear, clears services in a degraded
/maintenance
state.
Signals to the restarter that a service instance has been repaired. If the instance is degraded, requests that the restarter takes the service to the online state.
Implementations§
source§impl<'a> AdmClear<'a>
impl<'a> AdmClear<'a>
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 AdmClear<'a>
impl<'a> Send for AdmClear<'a>
impl<'a> Sync for AdmClear<'a>
impl<'a> Unpin for AdmClear<'a>
impl<'a> UnwindSafe for AdmClear<'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