#[non_exhaustive]pub enum PermissionsIntent {
Preserve,
Executable,
}Expand description
The permission intent to apply to a staged member.
Staged output is always owner-private (0600, or 0700 when executable).
Preserve maps an executable source to 0700 and anything else to
0600; broad source modes are never inherited.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Preserve
Retain executable intent privately where the platform exposes it.
Executable
Mark the staged member executable where the platform exposes executable bits.
Trait Implementations§
Source§impl Clone for PermissionsIntent
impl Clone for PermissionsIntent
impl Copy for PermissionsIntent
Source§impl Debug for PermissionsIntent
impl Debug for PermissionsIntent
impl Eq for PermissionsIntent
Source§impl PartialEq for PermissionsIntent
impl PartialEq for PermissionsIntent
impl StructuralPartialEq for PermissionsIntent
Auto Trait Implementations§
impl Freeze for PermissionsIntent
impl RefUnwindSafe for PermissionsIntent
impl Send for PermissionsIntent
impl Sync for PermissionsIntent
impl Unpin for PermissionsIntent
impl UnsafeUnpin for PermissionsIntent
impl UnwindSafe for PermissionsIntent
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