#[non_exhaustive]pub struct CpuQuota {
pub cpus: f32,
pub source: LimitSource,
}Expand description
A CPU quota: how much CPU time this process may use, in CPUs.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.cpus: f32The quota in CPUs: 1.5 is one and a half CPUs’ worth of time.
source: LimitSourceWhere it came from.
Trait Implementations§
impl Copy for CpuQuota
impl StructuralPartialEq for CpuQuota
Auto Trait Implementations§
impl Forget for CpuQuota
impl Freeze for CpuQuota
impl Move for CpuQuota
impl RefUnwindSafe for CpuQuota
impl Send for CpuQuota
impl Sync for CpuQuota
impl Unpin for CpuQuota
impl UnsafeUnpin for CpuQuota
impl UnwindSafe for CpuQuota
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