pub struct RuntimeDir { /* private fields */ }Expand description
One session’s runtime directory, from its creation at staging to its removal when the value is dropped.
Implementations§
Source§impl RuntimeDir
impl RuntimeDir
Sourcepub fn create(
sessions_path: &Path,
session_id: &str,
latch_of: &WorkdirRoot,
) -> Result<Self, String>
pub fn create( sessions_path: &Path, session_id: &str, latch_of: &WorkdirRoot, ) -> Result<Self, String>
Creates <sessions_path>/<session_id>/, locks it, sweeps stale siblings and creates
runtime/, sealed-etc/ and harness/ beneath it at 0700. Every refusal beneath the
three lands on latch_of’s latch and names its path absolutely.
sessions_path is sessions_dir’s answer, the one the launch was judged against. The
murmur home is held through crate::murmur_home::ensure_murmur_home first.
Sourcepub fn roots(&self) -> &RuntimeDirRoots
pub fn roots(&self) -> &RuntimeDirRoots
The three held directories.
Trait Implementations§
Source§impl Debug for RuntimeDir
impl Debug for RuntimeDir
Auto Trait Implementations§
impl Forget for RuntimeDir
impl Freeze for RuntimeDir
impl Move for RuntimeDir
impl RefUnwindSafe for RuntimeDir
impl Send for RuntimeDir
impl Sync for RuntimeDir
impl Unpin for RuntimeDir
impl UnsafeUnpin for RuntimeDir
impl UnwindSafe for RuntimeDir
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> 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