pub struct SharedMemoryConfig {
pub name: String,
pub buffer_size: usize,
pub element_size: usize,
pub create: bool,
}Expand description
Configuration for shared memory segments
Fields§
§name: StringName of the shared memory segment
buffer_size: usizeSize of the ring buffer (must be power of 2)
element_size: usizeElement size in bytes
create: boolWhether to create the segment (producer) or attach to existing (consumer)
Trait Implementations§
Source§fn clone(&self) -> SharedMemoryConfig
fn clone(&self) -> SharedMemoryConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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