pub struct ShmgetFlagsParts {
pub flags: ShmgetFlags,
pub tlb_size_log_2: u32,
pub perms: SFlag,
}Expand description
Represents a deconstructed shmflg, as passed to the shmget syscall.
Fields§
§flags: ShmgetFlagsBit flags.
tlb_size_log_2: u32Requested page size, log 2.
perms: SFlagRequested permissions (as mode parameter to open)
Implementations§
Source§impl ShmgetFlagsParts
impl ShmgetFlagsParts
Sourcepub fn from_shmflg(shmflg: c_int) -> Self
pub fn from_shmflg(shmflg: c_int) -> Self
Split a shmflg value, as provided to the shmget syscall, into consituent parts.
Trait Implementations§
Source§impl Clone for ShmgetFlagsParts
impl Clone for ShmgetFlagsParts
Source§fn clone(&self) -> ShmgetFlagsParts
fn clone(&self) -> ShmgetFlagsParts
Returns a duplicate 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 Debug for ShmgetFlagsParts
impl Debug for ShmgetFlagsParts
Source§impl PartialEq for ShmgetFlagsParts
impl PartialEq for ShmgetFlagsParts
impl Copy for ShmgetFlagsParts
impl Eq for ShmgetFlagsParts
impl StructuralPartialEq for ShmgetFlagsParts
Auto Trait Implementations§
impl Freeze for ShmgetFlagsParts
impl RefUnwindSafe for ShmgetFlagsParts
impl Send for ShmgetFlagsParts
impl Sync for ShmgetFlagsParts
impl Unpin for ShmgetFlagsParts
impl UnsafeUnpin for ShmgetFlagsParts
impl UnwindSafe for ShmgetFlagsParts
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