pub enum ProcessMatcher {
Exact(&'static str),
Suffix(&'static str),
Contains(&'static str),
}Expand description
A declarative process-path matcher used by daemon discovery.
Variants§
Exact(&'static str)
Path or argv exactly equals this string.
Suffix(&'static str)
Path or argv ends with this suffix.
Contains(&'static str)
Path or argv contains this substring.
Implementations§
Trait Implementations§
Source§impl Clone for ProcessMatcher
impl Clone for ProcessMatcher
Source§fn clone(&self) -> ProcessMatcher
fn clone(&self) -> ProcessMatcher
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProcessMatcher
impl Debug for ProcessMatcher
Source§impl PartialEq for ProcessMatcher
impl PartialEq for ProcessMatcher
Source§fn eq(&self, other: &ProcessMatcher) -> bool
fn eq(&self, other: &ProcessMatcher) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ProcessMatcher
impl Eq for ProcessMatcher
impl StructuralPartialEq for ProcessMatcher
Auto Trait Implementations§
impl Freeze for ProcessMatcher
impl RefUnwindSafe for ProcessMatcher
impl Send for ProcessMatcher
impl Sync for ProcessMatcher
impl Unpin for ProcessMatcher
impl UnsafeUnpin for ProcessMatcher
impl UnwindSafe for ProcessMatcher
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