Struct shared_memory::SharedMemConf[][src]

pub struct SharedMemConf<'a> { /* fields omitted */ }

Configuration used to describe a shared memory mapping before openning/creation

Methods

impl<'a> SharedMemConf<'a>
[src]

Returns a new SharedMemConf

Sets the size of the usable memory in the mapping

Sets the path for the link file

Sets a specific unique_id to be used when creating the mapping

Adds a lock of specified type on a range of bytes

Adds an event of specified type

Creates a shared memory mapping from the current config values

Opens a shared memory mapping.

This will look at the current link_path/os_path to create the SharedMem. Other values will be reset.

Returns the currently set link_path value

Returns the currently set os_path value

Return the current size of the user data

Returns the current size that the metadata will take

Returns the current number of locks

Returns the current number of events

Auto Trait Implementations

impl<'a> !Send for SharedMemConf<'a>

impl<'a> !Sync for SharedMemConf<'a>