pub struct Run { /* private fields */ }Expand description
One tool run’s log: lines while it runs, then exactly one end. A run dropped without an end was cancelled.
Implementations§
Source§impl Run
impl Run
Sourcepub fn unwatched() -> Self
pub fn unwatched() -> Self
A run nobody shows, such as tool check’s: launched programs get no pipes at all.
Sourcepub fn observe_launch(
self,
observe: impl FnOnce(ChildIdentity) + Send + Sync + 'static,
) -> Self
pub fn observe_launch( self, observe: impl FnOnce(ChildIdentity) + Send + Sync + 'static, ) -> Self
Observe the native birth identity at successful spawn, before a detached program’s own startup protocol. This does not change the log or the launch’s lifetime.
pub fn end(self, end: End)
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Run
impl !UnwindSafe for Run
impl Forget for Run
impl Freeze for Runwhere
*const ArcInner<Shared> is !null: Freeze,
PhantomData<ArcInner<Shared>>: Freeze,
*const dyn FnOnce(ChildIdentity) + Sync + Send is !null: Freeze,
PhantomData<dyn FnOnce(ChildIdentity) + Sync + Send>: Freeze,
impl Move for Run
impl Send for Run
impl Sync for Run
impl Unpin for Run
impl UnsafeUnpin for Runwhere
*const ArcInner<Shared> is !null: UnsafeUnpin,
PhantomData<ArcInner<Shared>>: UnsafeUnpin,
*const dyn FnOnce(ChildIdentity) + Sync + Send is !null: UnsafeUnpin,
PhantomData<dyn FnOnce(ChildIdentity) + Sync + Send>: UnsafeUnpin,
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