pub struct FairnessConfig {
pub vm_quantum: FairBudget,
pub capability_quantum: FairBudget,
pub max_vm_deficit: FairBudget,
pub max_capability_deficit: FairBudget,
pub max_vms: usize,
pub max_capabilities_per_vm: usize,
}Expand description
Bounded policy for the process -> VM -> capability scheduler.
Fields§
§vm_quantum: FairBudgetCredit added whenever a ready VM reaches the front of the process ring.
capability_quantum: FairBudgetCredit added whenever a ready capability reaches the front of its VM ring.
max_vm_deficit: FairBudgetMaximum credit a VM may retain between selections, including while idle.
max_capability_deficit: FairBudgetMaximum credit a capability may retain between selections, including while idle.
max_vms: usizeMaximum number of VM states retained by the scheduler.
max_capabilities_per_vm: usizeMaximum number of capability states retained for one VM.
Trait Implementations§
Source§impl Clone for FairnessConfig
impl Clone for FairnessConfig
Source§fn clone(&self) -> FairnessConfig
fn clone(&self) -> FairnessConfig
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 moreimpl Copy for FairnessConfig
Source§impl Debug for FairnessConfig
impl Debug for FairnessConfig
impl Eq for FairnessConfig
Source§impl PartialEq for FairnessConfig
impl PartialEq for FairnessConfig
impl StructuralPartialEq for FairnessConfig
Auto Trait Implementations§
impl Freeze for FairnessConfig
impl RefUnwindSafe for FairnessConfig
impl Send for FairnessConfig
impl Sync for FairnessConfig
impl Unpin for FairnessConfig
impl UnsafeUnpin for FairnessConfig
impl UnwindSafe for FairnessConfig
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