Struct rutabaga_gfx::rutabaga_os::shm::SharedMemory
source · pub struct SharedMemory(pub(crate) SharedMemory);
Tuple Fields§
§0: SharedMemory
Implementations§
sourcepub fn new<T: Into<Vec<u8>>>(
debug_name: T,
size: u64
) -> RutabagaResult<SharedMemory>
pub fn new<T: Into<Vec<u8>>>( debug_name: T, size: u64 ) -> RutabagaResult<SharedMemory>
Creates a new shared memory object of the given size.
|name| is purely for debugging purposes. It does not need to be unique, and it does not affect any non-debugging related properties of the constructed shared memory.
pub fn size(&self) -> u64
Trait Implementations§
source§fn as_raw_descriptor(&self) -> RawDescriptor
fn as_raw_descriptor(&self) -> RawDescriptor
Returns the underlying raw descriptor. Read more
source§fn from(sm: SharedMemory) -> OwnedDescriptor
fn from(sm: SharedMemory) -> OwnedDescriptor
Converts to this type from the input type.
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