pub enum ShMemService<SP> where
    SP: ShMemProvider
{ Started { bg_thread: Arc<Mutex<ShMemServiceThread>>, phantom: PhantomData<SP>, }, Failed { err_msg: String, phantom: PhantomData<SP>, }, }
Expand description

The ShMemService is a service handing out ShMem pages via unix domain sockets. It is mainly used and needed on Android.

Variants

Started

Fields

bg_thread: Arc<Mutex<ShMemServiceThread>>

The background thread

phantom: PhantomData<SP>

The pantom data

A started service

Failed

Fields

err_msg: String

The error message

phantom: PhantomData<SP>

The pantom data

A failed service

Implementations

Create a new ShMemService, then listen and service incoming connections in a new thread. Returns ShMemService::Failed on error.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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 Resulting TupleList, of an Prepend::prepend() call, including the prepended entry. Read more

Prepend a value to this tuple, returning a new tuple with prepended value.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

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.