Struct rutabaga_gfx::rutabaga_os::sys::linux::shm::SharedMemory
source · pub struct SharedMemory {
fd: OwnedFd,
size: u64,
}
Fields§
§fd: OwnedFd
§size: u64
Implementations§
sourcepub fn new(debug_name: &CStr, size: u64) -> RutabagaResult<SharedMemory>
pub fn new(debug_name: &CStr, size: u64) -> RutabagaResult<SharedMemory>
Creates a new shared memory file descriptor with zero size.
If a name is given, it will appear in /proc/self/fd/<shm fd>
for the purposes of
debugging. The name does not need to be unique.
The file descriptor is opened with the close on exec flag and allows memfd sealing.
Trait Implementations§
source§fn as_raw_descriptor(&self) -> RawDescriptor
fn as_raw_descriptor(&self) -> RawDescriptor
Returns the underlying raw descriptor. Read more
fn into_raw_descriptor(self) -> RawDescriptor
Auto Trait Implementations§
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