pub enum HomeEntryKind {
Show 19 variants
Home,
Config,
DeployKeys,
DeployStaging,
Deployments,
Spend,
Conversations,
Running,
State,
Artifacts,
CompiledForms,
HostFacts,
BinaryCache,
Formations,
Sessions,
Records,
Programs,
Keys,
Unrecognised(String),
}Expand description
What one top-level entry of ~/.murmur is.
Variants§
Home
Config
DeployKeys
DeployStaging
Deployments
Spend
Conversations
Running
State
Artifacts
CompiledForms
HostFacts
BinaryCache
Formations
Sessions
Records
Programs
Keys
Unrecognised(String)
A top-level name this build writes nothing under.
Implementations§
Source§impl HomeEntryKind
impl HomeEntryKind
Sourcepub fn file_name(&self) -> Option<&str>
pub fn file_name(&self) -> Option<&str>
The entry’s name under ~/.murmur, or None for the home itself.
Sourcepub fn holds(&self) -> &'static str
pub fn holds(&self) -> &'static str
What the entry holds, as a noun phrase that completes “<path> holds …”.
Sourcepub fn kept(&self) -> Option<&'static str>
pub fn kept(&self) -> Option<&'static str>
How long what the entry holds is kept, as a clause that follows Self::holds after a
comma, or None for an entry mur never removes on its own.
Sourcepub fn safe_to_delete(&self) -> bool
pub fn safe_to_delete(&self) -> bool
Whether deleting the entry loses nothing, because mur writes it again when it needs it.
formations/ is not: deleting an ended formation’s directory stops nothing, but its peers’
traces go with it and are never written again.
Sourcepub fn expected_private(&self) -> bool
pub fn expected_private(&self) -> bool
Whether the entry, and everything beneath it down to Self::private_depth, is expected
to be owner-only.
Sourcepub fn allowed_file_mode(&self) -> u32
pub fn allowed_file_mode(&self) -> u32
The widest mode a regular file beneath the entry may have: PRIVATE_FILE_MODE, or
0700 under programs/, whose unpacked downloads keep their owner execute bit.
Sourcepub fn private_depth(&self) -> Option<usize>
pub fn private_depth(&self) -> Option<usize>
How many directory levels below the entry the audit holds owner-only, or None for every
level.
formations/<frm_id>/<member>/ is held at two: the launcher makes those directories
owner-only, and below them is a member’s ordinary working directory, whose sessions are
written at the umask’s modes like any --workdir. The owner-only member directory is what
keeps them from other accounts, so walking further reports every file a session writes.
Trait Implementations§
Source§impl Clone for HomeEntryKind
impl Clone for HomeEntryKind
Source§impl Debug for HomeEntryKind
impl Debug for HomeEntryKind
impl Eq for HomeEntryKind
Source§impl PartialEq for HomeEntryKind
impl PartialEq for HomeEntryKind
impl StructuralPartialEq for HomeEntryKind
Auto Trait Implementations§
impl Forget for HomeEntryKind
impl Freeze for HomeEntryKind
impl Move for HomeEntryKind
impl RefUnwindSafe for HomeEntryKind
impl Send for HomeEntryKind
impl Sync for HomeEntryKind
impl Unpin for HomeEntryKind
impl UnsafeUnpin for HomeEntryKind
impl UnwindSafe for HomeEntryKind
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§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<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> ⓘ
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