pub struct ExecutionScope { /* private fields */ }Expand description
One created or reopened project-execution directory.
Implementations§
Source§impl ExecutionScope
impl ExecutionScope
Sourcepub fn create_generated(
recording_root: impl AsRef<Path>,
) -> Result<Self, ExecutionScopeError>
pub fn create_generated( recording_root: impl AsRef<Path>, ) -> Result<Self, ExecutionScopeError>
Creates a uniquely named scope beneath recording_root.
The readable UTC component is supplemented by process and sequence values. Exclusive directory creation remains the final collision check.
Sourcepub fn create_named(
recording_root: impl AsRef<Path>,
name: impl Into<String>,
) -> Result<Self, ExecutionScopeError>
pub fn create_named( recording_root: impl AsRef<Path>, name: impl Into<String>, ) -> Result<Self, ExecutionScopeError>
Creates one caller-named scope beneath recording_root.
Sourcepub fn open_existing(
directory: impl Into<PathBuf>,
) -> Result<Self, ExecutionScopeError>
pub fn open_existing( directory: impl Into<PathBuf>, ) -> Result<Self, ExecutionScopeError>
Opens an existing execution scope without creating or modifying files.
Sourcepub fn created_at_utc(&self) -> Option<&str>
pub fn created_at_utc(&self) -> Option<&str>
Returns the automatically captured creation timestamp when this handle created the scope.
Reopened legacy scopes return None because no auxiliary scope metadata
is invented merely to recover a timestamp.
Sourcepub fn task_recording_directory(&self, task_ordinal: u64) -> PathBuf
pub fn task_recording_directory(&self, task_ordinal: u64) -> PathBuf
Derives the absent recording path reserved for one deterministic task.
The directory is deliberately not created: the recording writer must retain exclusive creation and overwrite protection.
Trait Implementations§
Source§impl Clone for ExecutionScope
impl Clone for ExecutionScope
Source§fn clone(&self) -> ExecutionScope
fn clone(&self) -> ExecutionScope
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more