pub struct DeviceAllocationResult {
pub config: Option<Vec<DeviceAllocationConfiguration>>,
pub results: Option<Vec<DeviceRequestAllocationResult>>,
}
Expand description
DeviceAllocationResult is the result of allocating devices.
Fields§
§config: Option<Vec<DeviceAllocationConfiguration>>
This field is a combination of all the claim and class configuration parameters. Drivers can distinguish between those based on a flag.
This includes configuration parameters for drivers which have no allocated devices in the result because it is up to the drivers which configuration parameters they support. They can silently ignore unknown configuration parameters.
results: Option<Vec<DeviceRequestAllocationResult>>
Results lists all allocated devices.
Trait Implementations§
Source§impl Clone for DeviceAllocationResult
impl Clone for DeviceAllocationResult
Source§fn clone(&self) -> DeviceAllocationResult
fn clone(&self) -> DeviceAllocationResult
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 DeviceAllocationResult
impl Debug for DeviceAllocationResult
Source§impl DeepMerge for DeviceAllocationResult
impl DeepMerge for DeviceAllocationResult
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.Source§impl Default for DeviceAllocationResult
impl Default for DeviceAllocationResult
Source§fn default() -> DeviceAllocationResult
fn default() -> DeviceAllocationResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DeviceAllocationResult
impl<'de> Deserialize<'de> for DeviceAllocationResult
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 DeviceAllocationResult
impl PartialEq for DeviceAllocationResult
Source§impl Serialize for DeviceAllocationResult
impl Serialize for DeviceAllocationResult
impl StructuralPartialEq for DeviceAllocationResult
Auto Trait Implementations§
impl Freeze for DeviceAllocationResult
impl RefUnwindSafe for DeviceAllocationResult
impl Send for DeviceAllocationResult
impl Sync for DeviceAllocationResult
impl Unpin for DeviceAllocationResult
impl UnwindSafe for DeviceAllocationResult
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