pub enum DependencyCondition {
IfTargetActive,
IfBudgetAbove(StrategyId),
IfEngineMode(EngineMode),
}Expand description
A condition that must be met for a dependency to be active.
Variants§
IfTargetActive
Only depends on the target if the target is active this frame.
IfBudgetAbove(StrategyId)
Only depends on the target if the current budget >= this strategy.
IfEngineMode(EngineMode)
Only depends on the target in this engine mode.
Trait Implementations§
Source§impl Clone for DependencyCondition
impl Clone for DependencyCondition
Source§fn clone(&self) -> DependencyCondition
fn clone(&self) -> DependencyCondition
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 moreAuto Trait Implementations§
impl Freeze for DependencyCondition
impl RefUnwindSafe for DependencyCondition
impl Send for DependencyCondition
impl Sync for DependencyCondition
impl Unpin for DependencyCondition
impl UnsafeUnpin for DependencyCondition
impl UnwindSafe for DependencyCondition
Blanket Implementations§
Source§impl<T> AppLifecycle for Twhere
T: ?Sized,
impl<T> AppLifecycle for Twhere
T: ?Sized,
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