pub enum TempMapping {
ComposedRoot,
MountNamespace,
NotMapped(NotMappedReason),
}Expand description
How a literal /tmp reaches the session’s temporary folder, or why it does not.
Variants§
ComposedRoot
The sealed composed root binds the folder at /tmp.
MountNamespace
Each command enters a private mount namespace in which the folder is bound over /tmp.
NotMapped(NotMappedReason)
A literal /tmp is not the folder; TMPDIR names the folder’s absolute path.
Implementations§
Source§impl TempMapping
impl TempMapping
Sourcepub fn mapped_by(self) -> Option<&'static str>
pub fn mapped_by(self) -> Option<&'static str>
The mechanism’s wire name, null in the report when not mapped.
Sourcepub fn tmpdir_value(self, folder: &Path) -> String
pub fn tmpdir_value(self, folder: &Path) -> String
The value of TMPDIR the commands of a session whose folder is at folder see. On an
unconfined session the runtime sets none, so it is mur run’s own TMPDIR, or /tmp
when it had none.
Trait Implementations§
Source§impl Clone for TempMapping
impl Clone for TempMapping
impl Copy for TempMapping
Source§impl Debug for TempMapping
impl Debug for TempMapping
impl Eq for TempMapping
Source§impl PartialEq for TempMapping
impl PartialEq for TempMapping
impl StructuralPartialEq for TempMapping
Auto Trait Implementations§
impl Forget for TempMapping
impl Freeze for TempMapping
impl RefUnwindSafe for TempMapping
impl Send for TempMapping
impl Sync for TempMapping
impl Unpin for TempMapping
impl UnsafeUnpin for TempMapping
impl UnwindSafe for TempMapping
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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