pub enum Exe {
Any,
Name(ExeName),
}Expand description
The executable a rule matches: every process, or the processes whose image basename is a name, compared ASCII-case-insensitively.
Variants§
Implementations§
Source§impl Exe
impl Exe
Sourcepub fn new(text: impl Into<String>) -> Result<Self, FieldError>
pub fn new(text: impl Into<String>) -> Result<Self, FieldError>
The exe that text names: * is Exe::Any, anything else the
basename as written.
§Errors
FieldError::MissingExe for an empty text, FieldError::Nul
for one with a NUL.
Trait Implementations§
impl Eq for Exe
impl StructuralPartialEq for Exe
Auto Trait Implementations§
impl Freeze for Exe
impl RefUnwindSafe for Exe
impl Send for Exe
impl Sync for Exe
impl Unpin for Exe
impl UnsafeUnpin for Exe
impl UnwindSafe for Exe
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