pub enum Select {
Always,
OnUse(&'static [&'static str]),
OnRequest,
OnConfig {
key: &'static str,
any_of: &'static [&'static str],
default: &'static str,
},
}Expand description
When a link that picks its capabilities carries this one.
A plain build carries every capability in its graph; this is read by a
link that replays a kit for one app (lumenc package --static), after
the app’s own [capabilities] table, which names a capability to keep
or drop outright.
Variants§
Always
Every app.
OnUse(&'static [&'static str])
An app whose sources mention any of these: a builtin’s name, a config
key. The scan errs toward yes, the same way CapabilityEnv::sources_mention
does.
OnRequest
Only an app that asks for it by name. For a subsystem that exists for development rather than for the app’s users.
OnConfig
An app whose lumen.toml sets key to one of any_of. key is a
dotted path, section.field; default stands in for it when the file
leaves it unset. For one of several interchangeable implementations an
app picks between in its configuration.
Trait Implementations§
impl Copy for Select
impl Eq for Select
impl StructuralPartialEq for Select
Auto Trait Implementations§
impl Freeze for Select
impl RefUnwindSafe for Select
impl Send for Select
impl Sync for Select
impl Unpin for Select
impl UnsafeUnpin for Select
impl UnwindSafe for Select
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> DynEq for T
impl<T> DynEq for T
§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
key and return true if they are equal.