pub struct MemfdSeals(/* private fields */);
Expand description
A set of memfd seals.
An enumeration of each bit can be found at fcntl(2)
.
Implementations§
Source§impl MemfdSeals
impl MemfdSeals
Sourcepub fn new() -> MemfdSeals
pub fn new() -> MemfdSeals
Returns an empty set of memfd seals.
Sourcepub fn set_grow_seal(&mut self)
pub fn set_grow_seal(&mut self)
Sets the grow seal bit.
Sourcepub fn shrink_seal(self) -> bool
pub fn shrink_seal(self) -> bool
True of the shrink seal bit is present.
Sourcepub fn set_shrink_seal(&mut self)
pub fn set_shrink_seal(&mut self)
Sets the shrink seal bit.
Sourcepub fn write_seal(self) -> bool
pub fn write_seal(self) -> bool
True of the write seal bit is present.
Sourcepub fn set_write_seal(&mut self)
pub fn set_write_seal(&mut self)
Sets the write seal bit.
Sourcepub fn set_seal_seal(&mut self)
pub fn set_seal_seal(&mut self)
Sets the seal seal bit.
Trait Implementations§
Source§impl Clone for MemfdSeals
impl Clone for MemfdSeals
Source§fn clone(&self) -> MemfdSeals
fn clone(&self) -> MemfdSeals
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for MemfdSeals
Auto Trait Implementations§
impl Freeze for MemfdSeals
impl RefUnwindSafe for MemfdSeals
impl Send for MemfdSeals
impl Sync for MemfdSeals
impl Unpin for MemfdSeals
impl UnwindSafe for MemfdSeals
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