pub struct DeviceTaintRuleSpec {
pub device_selector: Option<DeviceTaintSelector>,
pub taint: DeviceTaint,
}
Expand description
DeviceTaintRuleSpec specifies the selector and one taint.
Fields§
§device_selector: Option<DeviceTaintSelector>
DeviceSelector defines which device(s) the taint is applied to. All selector criteria must be satified for a device to match. The empty selector matches all devices. Without a selector, no devices are matches.
taint: DeviceTaint
The taint that gets applied to matching devices.
Trait Implementations§
Source§impl Clone for DeviceTaintRuleSpec
impl Clone for DeviceTaintRuleSpec
Source§fn clone(&self) -> DeviceTaintRuleSpec
fn clone(&self) -> DeviceTaintRuleSpec
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 DeviceTaintRuleSpec
impl Debug for DeviceTaintRuleSpec
Source§impl DeepMerge for DeviceTaintRuleSpec
impl DeepMerge for DeviceTaintRuleSpec
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.Source§impl Default for DeviceTaintRuleSpec
impl Default for DeviceTaintRuleSpec
Source§fn default() -> DeviceTaintRuleSpec
fn default() -> DeviceTaintRuleSpec
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DeviceTaintRuleSpec
impl<'de> Deserialize<'de> for DeviceTaintRuleSpec
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 DeviceTaintRuleSpec
impl PartialEq for DeviceTaintRuleSpec
Source§impl Serialize for DeviceTaintRuleSpec
impl Serialize for DeviceTaintRuleSpec
impl StructuralPartialEq for DeviceTaintRuleSpec
Auto Trait Implementations§
impl Freeze for DeviceTaintRuleSpec
impl RefUnwindSafe for DeviceTaintRuleSpec
impl Send for DeviceTaintRuleSpec
impl Sync for DeviceTaintRuleSpec
impl Unpin for DeviceTaintRuleSpec
impl UnwindSafe for DeviceTaintRuleSpec
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