[][src]Struct shared_memory::Shmem

pub struct Shmem { /* fields omitted */ }

Structure used to extract information from an existing shared memory mapping

Implementations

impl Shmem[src]

pub fn is_owner(&self) -> bool[src]

Returns whether we created the mapping or not

pub fn set_owner(&mut self, is_owner: bool) -> bool[src]

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

pub fn get_os_id(&self) -> &str[src]

Returns the OS unique identifier for the mapping

Returns the flink path if present

pub fn len(&self) -> usize[src]

Returns the total size of the mapping

pub fn as_ptr(&self) -> *mut u8[src]

Returns a raw pointer to the mapping

Auto Trait Implementations

impl RefUnwindSafe for Shmem

impl !Send for Shmem

impl !Sync for Shmem

impl Unpin for Shmem

impl UnwindSafe for Shmem

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,