pub enum FileSeal {
SealShrink,
SealGrow,
SealWrite,
SealSeal,
SealFutureWrite,
}
Expand description
Seal that can be applied to a Memfd
.
Variants
SealShrink
File cannot be reduced in size.
Corresponds to F_SEAL_SHRINK
.
SealGrow
File cannot be grown in size.
Corresponds to F_SEAL_GROW
.
SealWrite
File cannot be written.
Corresponds to F_SEAL_WRITE
.
SealSeal
File sealing cannot be further manipulated.
Corresponds to F_SEAL_SEAL
.
SealFutureWrite
Like F_SEAL_WRITE
, but may still be written to through pre-existing
writeable mappings. Introduced in Linux 5.1.
Corresponds to F_SEAL_FUTURE_WRITE
.
Trait Implementations
impl Copy for FileSeal
impl Eq for FileSeal
impl StructuralEq for FileSeal
impl StructuralPartialEq for FileSeal
Auto Trait Implementations
impl RefUnwindSafe for FileSeal
impl Send for FileSeal
impl Sync for FileSeal
impl Unpin for FileSeal
impl UnwindSafe for FileSeal
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more