SharedMemoryObject

Trait SharedMemoryObject 

Source
pub trait SharedMemoryObject:
    MemoryMappingOps
    + Send
    + Sync {
    // Required methods
    fn size(&self) -> usize;
    fn resize(&self, new_size: usize) -> Result<(), &'static str>;
    fn id(&self) -> String;
    fn is_valid(&self) -> bool;
}
Expand description

Shared memory operations

This trait extends the base functionality for shared memory objects.

Required Methods§

Source

fn size(&self) -> usize

Get the size of the shared memory region in bytes

Source

fn resize(&self, new_size: usize) -> Result<(), &'static str>

Resize the shared memory region (within capacity)

Source

fn id(&self) -> String

Get a unique identifier for this shared memory object

Source

fn is_valid(&self) -> bool

Check if the shared memory is still valid

Implementors§