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 StructuralPartialEq for FileSeal
Auto Trait Implementations§
impl Freeze for FileSeal
impl RefUnwindSafe for FileSeal
impl Send for FileSeal
impl Sync for FileSeal
impl Unpin for FileSeal
impl UnwindSafe for FileSeal
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)