pub struct OpenFlags { /* private fields */ }
Implementations§
source§impl OpenFlags
impl OpenFlags
pub const CREATE: Self = _
pub const DIRECTORY: Self = _
pub const EXCLUSIVE: Self = _
pub const TRUNCATE: Self = _
pub fn as_array(&self) -> [u32; 1]
pub fn empty() -> Self
pub fn all() -> Self
pub fn contains(&self, other: Self) -> bool
pub fn intersects(&self, other: Self) -> bool
Trait Implementations§
source§impl BitAndAssign for OpenFlags
impl BitAndAssign for OpenFlags
source§fn bitand_assign(&mut self, rhs: OpenFlags)
fn bitand_assign(&mut self, rhs: OpenFlags)
Performs the
&=
operation. Read moresource§impl BitOrAssign for OpenFlags
impl BitOrAssign for OpenFlags
source§fn bitor_assign(&mut self, rhs: OpenFlags)
fn bitor_assign(&mut self, rhs: OpenFlags)
Performs the
|=
operation. Read moresource§impl BitXorAssign for OpenFlags
impl BitXorAssign for OpenFlags
source§fn bitxor_assign(&mut self, rhs: OpenFlags)
fn bitxor_assign(&mut self, rhs: OpenFlags)
Performs the
^=
operation. Read moreimpl ComponentType for OpenFlags
impl Copy for OpenFlags
impl Eq for OpenFlags
impl Lift for OpenFlags
impl Lower for OpenFlags
Auto Trait Implementations§
impl Freeze for OpenFlags
impl RefUnwindSafe for OpenFlags
impl Send for OpenFlags
impl Sync for OpenFlags
impl Unpin for OpenFlags
impl UnwindSafe for OpenFlags
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self
file descriptor.§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more