Struct smf::AdmRefresh
source · pub struct AdmRefresh<'a> { /* private fields */ }
Expand description
Created by Adm::refresh, refreshes a snapshot.
Requests that the restarter update the configuration snapshot of all requested services, replacing it with values from the current configuration.
Implementations§
source§impl<'a> AdmRefresh<'a>
impl<'a> AdmRefresh<'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 AdmRefresh<'a>
impl<'a> Send for AdmRefresh<'a>
impl<'a> Sync for AdmRefresh<'a>
impl<'a> Unpin for AdmRefresh<'a>
impl<'a> UnwindSafe for AdmRefresh<'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