pub struct NodeDeviceBuilder { /* private fields */ }
Expand description
Builder for NodeDevice
.
Implementations§
Source§impl NodeDeviceBuilder
impl NodeDeviceBuilder
Sourcepub fn healthy(&mut self, value: bool) -> &mut Self
pub fn healthy(&mut self, value: bool) -> &mut Self
Healthy captures whether the device is healthy.
Sourcepub fn health_description(&mut self, value: String) -> &mut Self
pub fn health_description(&mut self, value: String) -> &mut Self
HealthDescription is used to provide a human readable description of why the device may be unhealthy.
Sourcepub fn locality(&mut self, value: Option<NodeDeviceLocality>) -> &mut Self
pub fn locality(&mut self, value: Option<NodeDeviceLocality>) -> &mut Self
Locality stores HW locality information for the node to optionally be used when making placement decisions.
Sourcepub fn build(&self) -> Result<NodeDevice, NodeDeviceBuilderError>
pub fn build(&self) -> Result<NodeDevice, NodeDeviceBuilderError>
Trait Implementations§
Source§impl Clone for NodeDeviceBuilder
impl Clone for NodeDeviceBuilder
Source§fn clone(&self) -> NodeDeviceBuilder
fn clone(&self) -> NodeDeviceBuilder
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 NodeDeviceBuilder
impl RefUnwindSafe for NodeDeviceBuilder
impl Send for NodeDeviceBuilder
impl Sync for NodeDeviceBuilder
impl Unpin for NodeDeviceBuilder
impl UnwindSafe for NodeDeviceBuilder
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