pub struct ShmOpenFlags {
pub create: bool,
pub exclusive: bool,
pub read_only: bool,
}Expand description
Open flags for shm_open (mirror POSIX O_CREAT, O_EXCL, O_RDONLY, O_RDWR).
Fields§
§create: boolCreate the object if it does not exist.
exclusive: boolFail if object already exists (used with create).
read_only: boolRead-only access.
Implementations§
Source§impl ShmOpenFlags
impl ShmOpenFlags
Sourcepub const CREATE_RDWR: Self
pub const CREATE_RDWR: Self
O_RDWR | O_CREAT
Trait Implementations§
Source§impl Clone for ShmOpenFlags
impl Clone for ShmOpenFlags
Source§fn clone(&self) -> ShmOpenFlags
fn clone(&self) -> ShmOpenFlags
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ShmOpenFlags
impl Debug for ShmOpenFlags
impl Copy for ShmOpenFlags
Auto Trait Implementations§
impl Freeze for ShmOpenFlags
impl RefUnwindSafe for ShmOpenFlags
impl Send for ShmOpenFlags
impl Sync for ShmOpenFlags
impl Unpin for ShmOpenFlags
impl UnwindSafe for ShmOpenFlags
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)