pub struct OpenFlags {
pub read: bool,
pub write: bool,
pub create: bool,
pub exclusive: bool,
pub truncate: bool,
pub append: bool,
pub directory: bool,
}Expand description
File open flags.
Fields§
§read: boolOpen for reading
write: boolOpen for writing
create: boolCreate if doesn’t exist
exclusive: boolFail if exists (with create)
truncate: boolTruncate to zero length
append: boolAppend mode (writes go to end)
directory: boolOpen directory
Trait Implementations§
impl Copy 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 UnsafeUnpin 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