pub enum CpuIsolationClass {
BestEffort,
WholeCore,
StrictIsolated,
}Expand description
Per-lease CPU isolation class.
Mirrors fabricbios_core::lease_cpu_isolation::CpuIsolationClass at the
SDK layer. See docs/spec/cpu-isolation-wire-format.md for the wire
format and docs/spec/resource-isolation-and-exclusivity.md §4.2 for
the semantics.
When passed to CpuBuilder::isolation, the runtime emits
TLV_LEASE_CPU_ISOLATION (0x0902) on the LEASE_ALLOC request.
Unsupported classes fail closed — the node rejects the lease.
Variants§
BestEffort
Default — no pinning beyond cgroup quota.
WholeCore
Lease owns a full core; no SMT sibling sharing.
StrictIsolated
WholeCore plus topology/NUMA constraints.
Trait Implementations§
Source§impl Clone for CpuIsolationClass
impl Clone for CpuIsolationClass
Source§fn clone(&self) -> CpuIsolationClass
fn clone(&self) -> CpuIsolationClass
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 CpuIsolationClass
impl Debug for CpuIsolationClass
Source§impl PartialEq for CpuIsolationClass
impl PartialEq for CpuIsolationClass
impl Copy for CpuIsolationClass
impl Eq for CpuIsolationClass
impl StructuralPartialEq for CpuIsolationClass
Auto Trait Implementations§
impl Freeze for CpuIsolationClass
impl RefUnwindSafe for CpuIsolationClass
impl Send for CpuIsolationClass
impl Sync for CpuIsolationClass
impl Unpin for CpuIsolationClass
impl UnwindSafe for CpuIsolationClass
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