pub struct DeviceClaim {
pub config: Option<Vec<DeviceClaimConfiguration>>,
pub constraints: Option<Vec<DeviceConstraint>>,
pub requests: Option<Vec<DeviceRequest>>,
}
Expand description
DeviceClaim defines how to request devices with a ResourceClaim.
Fields§
§config: Option<Vec<DeviceClaimConfiguration>>
This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim.
constraints: Option<Vec<DeviceConstraint>>
These constraints must be satisfied by the set of devices that get allocated for the claim.
requests: Option<Vec<DeviceRequest>>
Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated.
Trait Implementations§
Source§impl Clone for DeviceClaim
impl Clone for DeviceClaim
Source§fn clone(&self) -> DeviceClaim
fn clone(&self) -> DeviceClaim
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 DeviceClaim
impl Debug for DeviceClaim
Source§impl DeepMerge for DeviceClaim
impl DeepMerge for DeviceClaim
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.Source§impl Default for DeviceClaim
impl Default for DeviceClaim
Source§fn default() -> DeviceClaim
fn default() -> DeviceClaim
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DeviceClaim
impl<'de> Deserialize<'de> for DeviceClaim
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 DeviceClaim
impl PartialEq for DeviceClaim
Source§impl Serialize for DeviceClaim
impl Serialize for DeviceClaim
impl StructuralPartialEq for DeviceClaim
Auto Trait Implementations§
impl Freeze for DeviceClaim
impl RefUnwindSafe for DeviceClaim
impl Send for DeviceClaim
impl Sync for DeviceClaim
impl Unpin for DeviceClaim
impl UnwindSafe for DeviceClaim
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