pub enum OwnerOnlyOutcome {
Created,
Tightened {
previous_mode: u32,
},
AlreadyPrivate,
NotApplicable,
}Expand description
What ensure_owner_only_dir did.
Variants§
Created
The directory did not exist; it was created with mode 0700.
Tightened
It existed with group/other permission bits set; those were removed.
previous_mode is the old permission bits (e.g. 0o755).
AlreadyPrivate
It already had no group/other access. Nothing changed.
NotApplicable
Nothing to do here: not a Unix platform (Windows scopes the user
profile, and so ~/.agentmux, to its owner through ACLs), or dir
is the user’s home directory itself — a misconfigured
AGENTMUX_HOME_OVERRIDE/AGENTMUX_DATA_HOME pointing at $HOME
must not chmod the whole home to 0700.
Trait Implementations§
Source§impl Clone for OwnerOnlyOutcome
impl Clone for OwnerOnlyOutcome
Source§fn clone(&self) -> OwnerOnlyOutcome
fn clone(&self) -> OwnerOnlyOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OwnerOnlyOutcome
Source§impl Debug for OwnerOnlyOutcome
impl Debug for OwnerOnlyOutcome
impl Eq for OwnerOnlyOutcome
Source§impl PartialEq for OwnerOnlyOutcome
impl PartialEq for OwnerOnlyOutcome
impl StructuralPartialEq for OwnerOnlyOutcome
Auto Trait Implementations§
impl Freeze for OwnerOnlyOutcome
impl RefUnwindSafe for OwnerOnlyOutcome
impl Send for OwnerOnlyOutcome
impl Sync for OwnerOnlyOutcome
impl Unpin for OwnerOnlyOutcome
impl UnsafeUnpin for OwnerOnlyOutcome
impl UnwindSafe for OwnerOnlyOutcome
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