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

Structure used to extract information from an existing shared memory mapping

Implementations

Returns whether we created the mapping or not

Allows for gaining/releasing ownership of the mapping

Warning : You must ensure at least one process owns the mapping in order to ensure proper cleanup code is ran

Returns the OS unique identifier for the mapping

Returns the flink path if present

Returns the total size of the mapping

Returns a raw pointer to the mapping

Returns mapping as a byte slice

Safety

This function is unsafe because it is impossible to ensure the range of bytes is immutable

Returns mapping as a mutable byte slice

Safety

This function is unsafe because it is impossible to ensure the returned mutable refence is unique/exclusive

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.