[][src]Enum ipc_rs::Mode

pub enum Mode {
    Public,
    Group,
    Private,
    Custom(i32),
}

A helper enum for describing a message queue access mode

Note that the creator of a message queue bypasses permission mode and what's described here applies to the owner of the message queue (owner != creator).

Variants

Public

Allows complete access to anyone

Group

Allows complete access to only the owner's group and the owner (and the creator)

Private

Allows complete access to only the owner (and the creator)

Custom(i32)

Custom modes. Please, do try to make sure that you only pass numbers >= 0777

Trait Implementations

impl Copy for Mode[src]

impl From<Mode> for i32[src]

fn from(mode: Mode) -> i32[src]

Allows conversion of modes to and from i32. This conversion can never fail, but there is a chance that numbers 'longer' than 9 bits might interfere with flags.

Therefore, only use custom mode when absolutely necessary.

impl Clone for Mode[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Mode[src]

Auto Trait Implementations

impl Send for Mode

impl Unpin for Mode

impl Sync for Mode

impl UnwindSafe for Mode

impl RefUnwindSafe for Mode

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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