pub struct AllocationResult {
pub controller: Option<String>,
pub devices: Option<DeviceAllocationResult>,
pub node_selector: Option<NodeSelector>,
}
Expand description
AllocationResult contains attributes of an allocated resource.
Fields§
§controller: Option<String>
Controller is the name of the DRA driver which handled the allocation. That driver is also responsible for deallocating the claim. It is empty when the claim can be deallocated without involving a driver.
A driver may allocate devices provided by other drivers, so this driver name here can be different from the driver names listed for the results.
This is an alpha field and requires enabling the DRAControlPlaneController feature gate.
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 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 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 JsonSchema for AllocationResult
impl JsonSchema for AllocationResult
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn json_schema(__gen: &mut SchemaGenerator) -> Schema
fn json_schema(__gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreSource§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