[−][src]Enum ipc_rs::Mode
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(&self) -> 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]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &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<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,