pub struct Tracker { /* private fields */ }Expand description
A task’s entry, kept up to date by the process doing the work.
Cheap to clone (a path and an id) and safe to share: the last written line is compared under a lock so a turn that emits twenty events writes the file once.
Implementations§
Source§impl Tracker
impl Tracker
pub fn new(registry: Registry, id: impl Into<String>) -> Tracker
pub fn id(&self) -> &str
Sourcepub fn event(&self, event: &AgentEvent)
pub fn event(&self, event: &AgentEvent)
Follow one event, if it says something a row can carry. Errors are nobody’s business here: a registry that cannot be written must not stop the run it is describing.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Tracker
impl Freeze for Tracker
impl Move for Tracker
impl RefUnwindSafe for Tracker
impl Send for Tracker
impl Sync for Tracker
impl Unpin for Tracker
impl UnsafeUnpin for Trackerwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<Mutex<String>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<String>>>: UnsafeUnpin,
impl UnwindSafe for Tracker
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