#[repr(C)]pub enum SHMPermission {
Map = 0,
Read = 1,
Write = 2,
Transfer = 3,
}Expand description
Permission model definition for shared memories
Variants§
Map = 0
allows target process to map the SHM. No read nor write though
Read = 1
allows target process to read the mapped SHM. Requires MAP
Write = 2
allows target process to write shared memory. Requires MAP
Transfer = 3
allows target process to transfer SHM to another, pre-allowed, process
Trait Implementations§
Source§impl From<SHMPermission> for u32
Converter for SHM permission to register encoding (u32)
impl From<SHMPermission> for u32
Converter for SHM permission to register encoding (u32)
Source§fn from(shm_perm: SHMPermission) -> u32
fn from(shm_perm: SHMPermission) -> u32
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SHMPermission
impl RefUnwindSafe for SHMPermission
impl Send for SHMPermission
impl Sync for SHMPermission
impl Unpin for SHMPermission
impl UnwindSafe for SHMPermission
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