pub struct FileOptions { /* private fields */ }Expand description
What to open: access and creation, as std::fs::OpenOptions names them. Only these, because
the open mode is what an OpenedFile vouches for, and a caller’s own flags could change it.
A file is shared for reading, writing and deletion, as std opens one.
Implementations§
Source§impl FileOptions
impl FileOptions
Sourcepub fn create_new(self, create_new: bool) -> Self
pub fn create_new(self, create_new: bool) -> Self
Create the file, and fail if it exists.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileOptions
impl RefUnwindSafe for FileOptions
impl Send for FileOptions
impl Sync for FileOptions
impl Unpin for FileOptions
impl UnsafeUnpin for FileOptions
impl UnwindSafe for FileOptions
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