pub struct RunScope {
pub session: String,
pub children: ChildLedger,
pub cancel: Cancel,
}Expand description
What one run is, as far as a tool that starts children needs to know.
Fields§
§session: StringThe session the run is writing to. A child session records it as its parent.
children: ChildLedgerThe children this run has started so far.
cancel: CancelThe run’s cancellation flag, so a tool that starts another agent can give it the same one. A work that outlives the run that asked for it is exactly what cancellation is about.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for RunScope
impl Forget for RunScope
impl Move for RunScope
impl RefUnwindSafe for RunScopewhere
Mutex<usize>: RefUnwindSafe,
Mutex<Vec<ChildRun>>: RefUnwindSafe,
Atomic<usize>: RefUnwindSafe,
Atomic<bool>: RefUnwindSafe,
Notify: RefUnwindSafe,
impl Send for RunScope
impl Sync for RunScope
impl Unpin for RunScope
impl UnsafeUnpin for RunScopewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
Align4<u32>: UnsafeUnpin,
Align1<u8>: UnsafeUnpin,
PhantomData<ChildRun>: UnsafeUnpin,
*const ArcInner<Inner> is !null: UnsafeUnpin,
PhantomData<ArcInner<Inner>>: UnsafeUnpin,
impl UnwindSafe for RunScopewhere
RawVecInner: UnwindSafe,
Mutex<usize>: UnwindSafe,
Mutex<Vec<ChildRun>>: UnwindSafe,
Arc<Inner>: 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