pub struct CpusBuilder { /* private fields */ }
Expand description
Builder for Cpus
.
Implementations§
Source§impl CpusBuilder
impl CpusBuilder
pub fn boot(&mut self, value: u8) -> &mut Self
pub fn max(&mut self, value: u8) -> &mut Self
pub fn topology(&mut self, value: CpuTopology) -> &mut Self
pub fn kvm_hyperv(&mut self, value: OnOff) -> &mut Self
pub fn max_phys_bits(&mut self, value: u8) -> &mut Self
pub fn affinity(&mut self, value: Vec<CpuAffinity>) -> &mut Self
pub fn features(&mut self, value: CpuFeatures) -> &mut Self
Trait Implementations§
Source§impl Clone for CpusBuilder
impl Clone for CpusBuilder
Source§fn clone(&self) -> CpusBuilder
fn clone(&self) -> CpusBuilder
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 moreAuto Trait Implementations§
impl Freeze for CpusBuilder
impl RefUnwindSafe for CpusBuilder
impl Send for CpusBuilder
impl Sync for CpusBuilder
impl Unpin for CpusBuilder
impl UnwindSafe for CpusBuilder
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