pub struct ProcessMonitorTracer { /* private fields */ }
Implementations§
Source§impl ProcessMonitorTracer
impl ProcessMonitorTracer
pub fn new(command: Command) -> (Self, ProcessMonitorWatcher)
pub fn assign_pid(&self, pid: Option<Pid>)
pub fn set_exit_code(&self, code: Option<ExitCode>)
Methods from Deref<Target = Tracer<ProcessMonitorState>>§
Sourcepub fn send(
&self,
data: <T as Flow>::Event,
opt_system_time: Option<SystemTime>,
direction: Option<Direction<ProviderProtocol>>,
)
pub fn send( &self, data: <T as Flow>::Event, opt_system_time: Option<SystemTime>, direction: Option<Direction<ProviderProtocol>>, )
Send an event to a Recorder
.
Sourcepub fn subscribe(&mut self) -> Result<Receiver<ActionEnvelope<T>>, Error>
pub fn subscribe(&mut self) -> Result<Receiver<ActionEnvelope<T>>, Error>
Subscribe to the stream of the watcher.
Trait Implementations§
Source§impl Clone for ProcessMonitorTracer
impl Clone for ProcessMonitorTracer
Source§fn clone(&self) -> ProcessMonitorTracer
fn clone(&self) -> ProcessMonitorTracer
Returns a duplicate of the value. Read more
1.0.0 · 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 ProcessMonitorTracer
impl Debug for ProcessMonitorTracer
Source§impl Deref for ProcessMonitorTracer
impl Deref for ProcessMonitorTracer
Auto Trait Implementations§
impl Freeze for ProcessMonitorTracer
impl !RefUnwindSafe for ProcessMonitorTracer
impl Send for ProcessMonitorTracer
impl Sync for ProcessMonitorTracer
impl Unpin for ProcessMonitorTracer
impl !UnwindSafe for ProcessMonitorTracer
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