pub struct RuntimeComponentDescriptor {
pub name: &'static str,
pub kind: RuntimeComponentKind,
pub dependencies: Vec<&'static str>,
pub startup: Vec<RuntimeStartupDescriptor>,
pub health_checks: Vec<HealthCheckDescriptor>,
pub tasks: Vec<RuntimeTaskDescriptor>,
pub shutdown: Vec<RuntimeShutdownDescriptor>,
}Expand description
Static metadata for a registered runtime component.
Fields§
§name: &'static strStable component name.
kind: RuntimeComponentKindBroad component category.
dependencies: Vec<&'static str>Stable names of components that should be initialized before this one.
startup: Vec<RuntimeStartupDescriptor>Registered startup phases owned by this component.
health_checks: Vec<HealthCheckDescriptor>Registered health checks owned by this component.
tasks: Vec<RuntimeTaskDescriptor>Registered runtime tasks owned by this component.
shutdown: Vec<RuntimeShutdownDescriptor>Registered shutdown phases owned by this component.
Trait Implementations§
Source§impl Clone for RuntimeComponentDescriptor
impl Clone for RuntimeComponentDescriptor
Source§fn clone(&self) -> RuntimeComponentDescriptor
fn clone(&self) -> RuntimeComponentDescriptor
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 RuntimeComponentDescriptor
impl Debug for RuntimeComponentDescriptor
Source§impl PartialEq for RuntimeComponentDescriptor
impl PartialEq for RuntimeComponentDescriptor
Source§fn eq(&self, other: &RuntimeComponentDescriptor) -> bool
fn eq(&self, other: &RuntimeComponentDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for RuntimeComponentDescriptor
impl StructuralPartialEq for RuntimeComponentDescriptor
Auto Trait Implementations§
impl Freeze for RuntimeComponentDescriptor
impl RefUnwindSafe for RuntimeComponentDescriptor
impl Send for RuntimeComponentDescriptor
impl Sync for RuntimeComponentDescriptor
impl Unpin for RuntimeComponentDescriptor
impl UnsafeUnpin for RuntimeComponentDescriptor
impl UnwindSafe for RuntimeComponentDescriptor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.