pub enum ResourceAllocationStrategy {
EqualSplit,
SharedPool,
Priority,
Proportional,
}Expand description
ResourceAllocationStrategy - How to allocate resources among child callables @see packages/enact-schemas/src/execution.schemas.ts - resourceAllocationStrategySchema
Variants§
EqualSplit
Divide resources equally among children
Shared pool with first-come-first-served
Priority
Higher priority gets more resources
Proportional
Allocate based on estimated cost
Trait Implementations§
Source§impl Clone for ResourceAllocationStrategy
impl Clone for ResourceAllocationStrategy
Source§fn clone(&self) -> ResourceAllocationStrategy
fn clone(&self) -> ResourceAllocationStrategy
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 moreSource§impl Debug for ResourceAllocationStrategy
impl Debug for ResourceAllocationStrategy
Source§impl Default for ResourceAllocationStrategy
impl Default for ResourceAllocationStrategy
Source§fn default() -> ResourceAllocationStrategy
fn default() -> ResourceAllocationStrategy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ResourceAllocationStrategy
impl<'de> Deserialize<'de> for ResourceAllocationStrategy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ResourceAllocationStrategy
impl StructuralPartialEq for ResourceAllocationStrategy
Auto Trait Implementations§
impl Freeze for ResourceAllocationStrategy
impl RefUnwindSafe for ResourceAllocationStrategy
impl Send for ResourceAllocationStrategy
impl Sync for ResourceAllocationStrategy
impl Unpin for ResourceAllocationStrategy
impl UnsafeUnpin for ResourceAllocationStrategy
impl UnwindSafe for ResourceAllocationStrategy
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.