[−][src]Struct shared_memory::ShmemConf
Struct used to configure different parameters before creating a shared memory mapping
Implementations
impl ShmemConf
[src]
pub fn new() -> Self
[src]
Create a new default shmem config
pub fn os_id<S: AsRef<str>>(self, os_id: S) -> Self
[src]
Provide a specific os identifier for the mapping
When not specified, a randomly generated identifier will be used
pub fn force_create_flink(self) -> Self
[src]
Overwrites file links if it already exist when calling create()
pub fn flink<S: AsRef<Path>>(self, path: S) -> Self
[src]
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
pub fn size(self, size: usize) -> Self
[src]
Sets the size of the mapping that will be used in create()
pub fn create(self) -> Result<Shmem, ShmemError>
[src]
Create a new mapping using the current configuration
pub fn open(self) -> Result<Shmem, ShmemError>
[src]
Opens an existing mapping using the current configuration
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ShmemConf
impl Send for ShmemConf
impl Sync for ShmemConf
impl Unpin for ShmemConf
impl UnwindSafe for ShmemConf
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,