pub struct SessionLogCoordinator { /* private fields */ }Implementations§
Source§impl SessionLogCoordinator
impl SessionLogCoordinator
Sourcepub fn start(
logs_dir: &Path,
metadata: SessionLogMetadata,
live_adapter: Option<Box<dyn LiveLogAdapter>>,
) -> Result<Self>
pub fn start( logs_dir: &Path, metadata: SessionLogMetadata, live_adapter: Option<Box<dyn LiveLogAdapter>>, ) -> Result<Self>
Start a new session log coordinator.
logs_dir is the base directory for session logs (e.g. ~/.zag/projects/<path>/logs).
pub fn writer(&self) -> &SessionLogWriter
pub async fn finish(self, success: bool, error: Option<String>) -> Result<()>
Auto Trait Implementations§
impl Freeze for SessionLogCoordinator
impl RefUnwindSafe for SessionLogCoordinator
impl Send for SessionLogCoordinator
impl Sync for SessionLogCoordinator
impl Unpin for SessionLogCoordinator
impl UnsafeUnpin for SessionLogCoordinator
impl UnwindSafe for SessionLogCoordinator
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