[−][src]Struct shared_memory::Shmem
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
pub fn get_flink_path(&self) -> Option<&PathBuf>
[src]
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]
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>,