pub struct RunLog { /* private fields */ }Implementations§
Source§impl RunLog
impl RunLog
Sourcepub fn create(root: &Path, run_id: &str) -> Result<Self>
pub fn create(root: &Path, run_id: &str) -> Result<Self>
Opens <root>/runs/<run_id>/, creating it if needed.
Sourcepub fn watched_by(self, watcher: Option<Box<dyn Watcher>>) -> Self
pub fn watched_by(self, watcher: Option<Box<dyn Watcher>>) -> Self
Sends everything this log is told to whoever is watching.
Sourcepub fn checked(&mut self, record: &CheckRecord)
pub fn checked(&mut self, record: &CheckRecord)
Reports one finished gate check.
Not written here — the checks travel into the record whole, at the end, where they belong. This is only so a screen does not have to wait for the rest of the gate to learn that the first check passed.
pub fn dir(&self) -> &Path
pub fn append(&mut self, event: &Event) -> Result<()>
pub fn write_record(&self, record: &RunRecord) -> Result<()>
Auto Trait Implementations§
impl !RefUnwindSafe for RunLog
impl !Sync for RunLog
impl !UnwindSafe for RunLog
impl Freeze for RunLog
impl Send for RunLog
impl Unpin for RunLog
impl UnsafeUnpin for RunLog
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