pub struct Flags(_);
Expand description
A wrapper type around i32 with convenience methods for checking if libc::O_*
flags have been set.
Implementations§
source§impl Flags
impl Flags
sourcepub const fn writeable(self) -> bool
pub const fn writeable(self) -> bool
Returns true if these flags allow the file to be written to.
sourcepub const fn readable(self) -> bool
pub const fn readable(self) -> bool
Returns true if these flags allow the file to be read from.
sourcepub const fn write_only(self) -> bool
pub const fn write_only(self) -> bool
Returns true if the file was opened writeonly
Trait Implementations§
source§impl<'de> Deserialize<'de> for Flags
impl<'de> Deserialize<'de> for Flags
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<Flags> for Flags
impl PartialEq<Flags> for Flags
impl Copy for Flags
impl Eq for Flags
impl StructuralEq for Flags
impl StructuralPartialEq for Flags
Auto Trait Implementations§
impl RefUnwindSafe for Flags
impl Send for Flags
impl Sync for Flags
impl Unpin for Flags
impl UnwindSafe for Flags
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