pub enum Mode {
Public,
Group,
Private,
Custom(i32),
}
Expand description
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
Auto Trait Implementations§
impl Freeze for Mode
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnwindSafe for Mode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more