#[non_exhaustive]pub enum RuntimeControlMessage {
Reload,
Shutdown,
Custom(Arc<dyn Any + Send + Sync>),
}Expand description
Built-in control messages understood by runtime helpers such as
RuntimeTicker and RuntimeGuard.
Built-in control messages understood by runtime helpers such as
RuntimeGuard and RuntimeTicker.
The enum is marked #[non_exhaustive], requiring downstream crates to add a
wildcard arm (_) when pattern-matching so that new variants introduced in
future releases do not break compilation.
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.
Reload
Trigger a hot reload.
Shutdown
Request a graceful shutdown.
Custom(Arc<dyn Any + Send + Sync>)
User-defined message for custom extensions.
Trait Implementations§
Source§impl Clone for RuntimeControlMessage
impl Clone for RuntimeControlMessage
Source§fn clone(&self) -> RuntimeControlMessage
fn clone(&self) -> RuntimeControlMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RuntimeControlMessage
impl !RefUnwindSafe for RuntimeControlMessage
impl Send for RuntimeControlMessage
impl Sync for RuntimeControlMessage
impl Unpin for RuntimeControlMessage
impl UnsafeUnpin for RuntimeControlMessage
impl !UnwindSafe for RuntimeControlMessage
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