pub struct NumaResourceBuilder { /* private fields */ }
Expand description
Builder for NumaResource
.
Implementations§
Source§impl NumaResourceBuilder
impl NumaResourceBuilder
Sourcepub fn affinity(&mut self, value: String) -> &mut Self
pub fn affinity(&mut self, value: String) -> &mut Self
Affinity must be one of “none”, “prefer”, “require”.
Sourcepub fn devices(&mut self, value: Vec<String>) -> &mut Self
pub fn devices(&mut self, value: Vec<String>) -> &mut Self
Devices is the subset of devices requested by the task that must share the same numa node, along with the tasks reserved cpu cores.
Sourcepub fn build(&self) -> Result<NumaResource, NumaResourceBuilderError>
pub fn build(&self) -> Result<NumaResource, NumaResourceBuilderError>
Trait Implementations§
Source§impl Clone for NumaResourceBuilder
impl Clone for NumaResourceBuilder
Source§fn clone(&self) -> NumaResourceBuilder
fn clone(&self) -> NumaResourceBuilder
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 NumaResourceBuilder
impl RefUnwindSafe for NumaResourceBuilder
impl Send for NumaResourceBuilder
impl Sync for NumaResourceBuilder
impl Unpin for NumaResourceBuilder
impl UnwindSafe for NumaResourceBuilder
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