pub struct SharedMemConf<'a> { /* private fields */ }
Expand description

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

Implementations§

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§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.