pub struct ExecutionScope { /* private fields */ }Expand description
One created or reopened study-execution directory.
Implementations§
Source§impl ExecutionScope
impl ExecutionScope
Sourcepub fn open_or_create(
recording_root: impl AsRef<Path>,
) -> Result<Self, ExecutionScopeError>
pub fn open_or_create( recording_root: impl AsRef<Path>, ) -> Result<Self, ExecutionScopeError>
Uses the recording root itself as the deterministic execution scope.
This is intended for application-owned semantic task names where a repeated configuration must resolve to the same output path instead of receiving a timestamped execution wrapper.
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, ordinal: u64) -> PathBuf
pub fn task_recording_directory(&self, 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.
Sourcepub fn named_task_recording_directory(
&self,
name: &str,
) -> Result<PathBuf, ExecutionScopeError>
pub fn named_task_recording_directory( &self, name: &str, ) -> Result<PathBuf, ExecutionScopeError>
Derives the absent recording path reserved for one semantic relative path.
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 moreSource§impl Debug for ExecutionScope
impl Debug for ExecutionScope
impl Eq for ExecutionScope
Source§impl PartialEq for ExecutionScope
impl PartialEq for ExecutionScope
impl StructuralPartialEq for ExecutionScope
Auto Trait Implementations§
impl Freeze for ExecutionScope
impl RefUnwindSafe for ExecutionScope
impl Send for ExecutionScope
impl Sync for ExecutionScope
impl Unpin for ExecutionScope
impl UnsafeUnpin for ExecutionScope
impl UnwindSafe for ExecutionScope
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more