pub struct RecordsDir { /* private fields */ }Expand description
One session’s records directory, created at staging and kept after the session.
Implementations§
Source§impl RecordsDir
impl RecordsDir
Sourcepub fn create(
group: &Path,
session_id: &str,
latch_of: &WorkdirRoot,
) -> Result<Self, String>
pub fn create( group: &Path, session_id: &str, latch_of: &WorkdirRoot, ) -> Result<Self, String>
Creates <group>/<session_id>/ and every directory above it up to ~/.murmur/records at
0700, with no link followed beneath ~/.murmur/records, and holds it. Every refusal
beneath it lands on latch_of’s latch and names its path absolutely.
group is records_group’s answer for the session’s workdir root, the one the launch
was judged against.
Sourcepub fn path(&self) -> &Path
pub fn path(&self) -> &Path
The records directory’s absolute path, the value of RECORDS_DIR_ENV.
Sourcepub fn root(&self) -> &WorkdirRoot
pub fn root(&self) -> &WorkdirRoot
The held directory every runtime record of the session is written through.
Trait Implementations§
Source§impl Clone for RecordsDir
impl Clone for RecordsDir
Auto Trait Implementations§
impl Forget for RecordsDir
impl Freeze for RecordsDir
impl Move for RecordsDir
impl RefUnwindSafe for RecordsDir
impl Send for RecordsDir
impl Sync for RecordsDir
impl Unpin for RecordsDir
impl UnsafeUnpin for RecordsDir
impl UnwindSafe for RecordsDir
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
Converts
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> ⓘ
Converts
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