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

A ShMemProvider which uses shmget/shmat/shmctl to provide shared memory mappings.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

The actual shared map handed out by this ShMemProvider.

Create a new instance of the provider

Create a new shared memory mapping

Get a mapping given its id and size

Create a new shared memory mapping to hold an object of the given type

Get a mapping given its id to hold an object of the given type

Get a mapping given a description

Create a new sharedmap reference from an existing id and len

Reads an existing map config from env vars, then maps it

This method should be called before a fork or a thread creation event, allowing the ShMemProvider to get ready for a potential reset of thread specific info, and for potential reconnects. Make sure to call Self::post_fork() after threading! Read more

This method should be called after a fork or after cloning/a thread creation event, allowing the ShMemProvider to reset thread specific info, and potentially reconnect. Make sure to call Self::pre_fork() before threading! Read more

Release the resources associated with the given ShMem

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 TupleList, of an Prepend::prepend() call, including the prepended entry. Read more

Prepend a value to this tuple, returning a new tuple with prepended value.

The resulting type after obtaining ownership.

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

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.