pub struct HandleRights(pub u8);
Expand description
Allowed operations on a handle.
Tuple Fields§
§0: u8
Implementations§
Source§impl HandleRights
impl HandleRights
pub const WRITE: HandleRights = _
pub const READ: HandleRights = _
pub const MAP: HandleRights = _
pub const DRIVER: HandleRights = _
pub const POLL: HandleRights = _
pub const CLOSE: HandleRights = _
pub const NONE: HandleRights = _
pub const ALL: HandleRights = _
pub fn contains(&self, other: HandleRights) -> bool
Trait Implementations§
Source§impl BitOr for HandleRights
impl BitOr for HandleRights
Source§type Output = HandleRights
type Output = HandleRights
The resulting type after applying the
|
operator.Source§fn bitor(self, rhs: HandleRights) -> HandleRights
fn bitor(self, rhs: HandleRights) -> HandleRights
Performs the
|
operation. Read moreSource§impl Clone for HandleRights
impl Clone for HandleRights
Source§fn clone(&self) -> HandleRights
fn clone(&self) -> HandleRights
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for HandleRights
impl Debug for HandleRights
Source§impl Hash for HandleRights
impl Hash for HandleRights
Source§impl PartialEq for HandleRights
impl PartialEq for HandleRights
impl Copy for HandleRights
impl Eq for HandleRights
impl StructuralPartialEq for HandleRights
Auto Trait Implementations§
impl Freeze for HandleRights
impl RefUnwindSafe for HandleRights
impl Send for HandleRights
impl Sync for HandleRights
impl Unpin for HandleRights
impl UnwindSafe for HandleRights
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