pub struct Capability {
pub name: &'static str,
pub phase: Phase,
pub install: fn(&mut App, &CapabilityEnv),
pub preflight: Option<fn(&CapabilityEnv) -> Preflight>,
pub select: Select,
pub crate_name: &'static str,
}Expand description
One optional subsystem linked into the running binary.
Fields§
§name: &'static strThe name a link selects it by and a report lists it under.
phase: PhaseWhen the run loop installs it.
install: fn(&mut App, &CapabilityEnv)Install it: insert resources, add plugins and systems.
preflight: Option<fn(&CapabilityEnv) -> Preflight>Run before the app is built, on an interactive launch only.
select: SelectWhen a link that picks its capabilities carries this one.
crate_name: &'static strThe package that registers it, which is the object a link pulls by the register symbol. A kit lists a capability only when it carries that package.
Trait Implementations§
Source§impl Clone for Capability
impl Clone for Capability
Source§fn clone(&self) -> Capability
fn clone(&self) -> Capability
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 Capability
impl Debug for Capability
impl Copy for Capability
Auto Trait Implementations§
impl Freeze for Capability
impl RefUnwindSafe for Capability
impl Send for Capability
impl Sync for Capability
impl Unpin for Capability
impl UnsafeUnpin for Capability
impl UnwindSafe for Capability
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.