#[non_exhaustive]pub enum ReloadAction {
Command(Command),
Signal(ProtectedString),
}Expand description
One mutually exclusive reload action.
Reloading is lifecycle control, not a regular command or a lifecycle hook. A service therefore retains one explicit action rather than allowing command and signal declarations to conflict.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Command(Command)
Execute the supplied command to request a reload.
Signal(ProtectedString)
Deliver the supplied signal spelling to request a reload.
Trait Implementations§
Source§impl Clone for ReloadAction
impl Clone for ReloadAction
Source§fn clone(&self) -> ReloadAction
fn clone(&self) -> ReloadAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReloadAction
impl Debug for ReloadAction
impl Eq for ReloadAction
Source§impl PartialEq for ReloadAction
impl PartialEq for ReloadAction
impl StructuralPartialEq for ReloadAction
Auto Trait Implementations§
impl Freeze for ReloadAction
impl RefUnwindSafe for ReloadAction
impl Send for ReloadAction
impl Sync for ReloadAction
impl Unpin for ReloadAction
impl UnsafeUnpin for ReloadAction
impl UnwindSafe for ReloadAction
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