pub struct UdevPair {
pub key: String,
pub attribute: Option<String>,
pub operator: String,
pub value: String,
}Expand description
One KEY{attribute}op"value" pair of a udev rule.
Fields§
§key: StringACTION, SUBSYSTEM, ATTR, RUN, ENV, ….
attribute: Option<String>What’s in the braces (ATTR{idVendor}, RUN{builtin}).
operator: String== or != (a match), or =, +=, -=, := (an action).
value: StringThe value, quotes removed and \" unescaped.
Trait Implementations§
impl Eq for UdevPair
impl StructuralPartialEq for UdevPair
Auto Trait Implementations§
impl Freeze for UdevPair
impl RefUnwindSafe for UdevPair
impl Send for UdevPair
impl Sync for UdevPair
impl Unpin for UdevPair
impl UnsafeUnpin for UdevPair
impl UnwindSafe for UdevPair
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