pub struct LocalTracker { /* private fields */ }Expand description
A run directory under <root>/runs/<run_id>/.
create starts a new run (manifest + running status + fresh logs);
open re-attaches to an existing directory for resume, continuing
the event sequence where it left off.
Implementations§
Trait Implementations§
Source§impl Tracker for LocalTracker
impl Tracker for LocalTracker
Source§fn save_manifest(&self, manifest: &RunManifest) -> Result<()>
fn save_manifest(&self, manifest: &RunManifest) -> Result<()>
Atomically write the manifest.
Source§fn save_artifact(&self, rel_path: &str, bytes: &[u8]) -> Result<()>
fn save_artifact(&self, rel_path: &str, bytes: &[u8]) -> Result<()>
Write an artifact at a path relative to the run directory,
creating parent directories as needed.
Auto Trait Implementations§
impl Freeze for LocalTracker
impl RefUnwindSafe for LocalTracker
impl Send for LocalTracker
impl Sync for LocalTracker
impl Unpin for LocalTracker
impl UnsafeUnpin for LocalTracker
impl UnwindSafe for LocalTracker
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