pub struct AllocationResult {
pub devices: Option<DeviceAllocationResult>,
pub node_selector: Option<NodeSelector>,
}
Expand description
AllocationResult contains attributes of an allocated resource.
Fields§
§devices: Option<DeviceAllocationResult>
Devices is the result of allocating devices.
node_selector: Option<NodeSelector>
NodeSelector defines where the allocated resources are available. If unset, they are available everywhere.
Trait Implementations§
Source§impl Clone for AllocationResult
impl Clone for AllocationResult
Source§fn clone(&self) -> AllocationResult
fn clone(&self) -> AllocationResult
Returns a copy 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 AllocationResult
impl Debug for AllocationResult
Source§impl DeepMerge for AllocationResult
impl DeepMerge for AllocationResult
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.Source§impl Default for AllocationResult
impl Default for AllocationResult
Source§fn default() -> AllocationResult
fn default() -> AllocationResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AllocationResult
impl<'de> Deserialize<'de> for AllocationResult
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AllocationResult
impl PartialEq for AllocationResult
Source§impl Serialize for AllocationResult
impl Serialize for AllocationResult
impl StructuralPartialEq for AllocationResult
Auto Trait Implementations§
impl Freeze for AllocationResult
impl RefUnwindSafe for AllocationResult
impl Send for AllocationResult
impl Sync for AllocationResult
impl Unpin for AllocationResult
impl UnwindSafe for AllocationResult
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