pub struct ProcProbe<S, I> { /* private fields */ }Expand description
A per-request memo over pid_status and process_started_at.
A listing of hundreds of runs asks about the same few pids over and over, and every ask walks the platform’s process table. Asking once per pid is enough within one request; the probe is meant to be dropped with it, never kept, so a stale answer cannot outlive the moment it was read.
Implementations§
Source§impl<S, I> ProcProbe<S, I>
impl<S, I> ProcProbe<S, I>
Sourcepub fn started_at(&mut self, pid: u32) -> Option<String>
pub fn started_at(&mut self, pid: u32) -> Option<String>
process_started_at, asked at most once per pid.
Auto Trait Implementations§
impl<S, I> Freeze for ProcProbe<S, I>
impl<S, I> RefUnwindSafe for ProcProbe<S, I>where
S: RefUnwindSafe,
I: RefUnwindSafe,
impl<S, I> Send for ProcProbe<S, I>
impl<S, I> Sync for ProcProbe<S, I>
impl<S, I> Unpin for ProcProbe<S, I>
impl<S, I> UnsafeUnpin for ProcProbe<S, I>where
S: UnsafeUnpin,
I: UnsafeUnpin,
impl<S, I> UnwindSafe for ProcProbe<S, I>where
S: UnwindSafe,
I: 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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more