[][src]Struct procspawn::serde::Shmem

pub struct Shmem { /* fields omitted */ }

A read-only byte buffer for sending between processes.

The buffer behind the scenes uses shared memory which is faster send between processes than to serialize the raw bytes directly. It is however read-only.

Methods

impl Shmem[src]

pub fn from_bytes(bytes: &[u8]) -> Shmem[src]

Creates a buffer from some bytes.

pub fn as_bytes(&self) -> &[u8][src]

Returns the bytes inside.

Trait Implementations

impl Debug for Shmem[src]

impl Deref for Shmem[src]

type Target = [u8]

The resulting type after dereferencing.

impl<'de> Deserialize<'de> for Shmem[src]

impl Serialize for Shmem[src]

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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>,