pub struct MemfdSeals(i32);
Expand description
A set of memfd seals.
An enumeration of each bit can be found at fcntl(2)
.
Tuple Fields§
§0: i32
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 if 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 if 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 future_write_seal(self) -> bool
pub fn future_write_seal(self) -> bool
True if the future write seal bit is present.
sourcepub fn set_future_write_seal(&mut self)
pub fn set_future_write_seal(&mut self)
Sets the future 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 moresource§impl Default for MemfdSeals
impl Default for MemfdSeals
source§fn default() -> MemfdSeals
fn default() -> MemfdSeals
Returns the “default value” for a type. Read more
impl Copy for MemfdSeals
Auto Trait Implementations§
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