pub enum ProcSource {
Own,
Pid(u32),
PidFile(PathBuf),
}Expand description
How a watched process is found.
Variants§
Own
nmbrs itself.
Pid(u32)
A fixed process id.
PidFile(PathBuf)
A file holding the process id. Read again every sample window, so a restarted process is followed.
Trait Implementations§
Source§impl Clone for ProcSource
impl Clone for ProcSource
Source§impl Debug for ProcSource
impl Debug for ProcSource
impl Eq for ProcSource
Source§impl PartialEq for ProcSource
impl PartialEq for ProcSource
impl StructuralPartialEq for ProcSource
Auto Trait Implementations§
impl Forget for ProcSource
impl Freeze for ProcSource
impl Move for ProcSource
impl RefUnwindSafe for ProcSource
impl Send for ProcSourcewhere
RawVecInner: Send,
impl Sync for ProcSourcewhere
RawVecInner: Sync,
impl Unpin for ProcSource
impl UnsafeUnpin for ProcSource
impl UnwindSafe for ProcSourcewhere
RawVecInner: UnwindSafe,
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