pub struct ShmemConf { /* private fields */ }
Expand description

Struct used to configure different parameters before creating a shared memory mapping

Implementations

Create a new default shmem config

Provide a specific os identifier for the mapping

When not specified, a randomly generated identifier will be used

Overwrites file links if it already exist when calling create()

Create the shared memory mapping with a file link

This creates a file on disk that contains the unique os_id for the mapping. This can be useful when application want to rely on filesystems to share mappings

Sets the size of the mapping that will be used in create()

Create a new mapping using the current configuration

Opens an existing mapping using the current configuration

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the “default value” for a type. Read more

Executes the destructor for this type. Read more

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

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.