pub struct OpenOptions { /* private fields */ }Expand description
Files never follow a final symlink/reparse point. Private creation is atomic.
Implementations§
Source§impl OpenOptions
impl OpenOptions
pub fn new() -> Self
pub fn read(&mut self, value: bool) -> &mut Self
pub fn write(&mut self, value: bool) -> &mut Self
pub fn append(&mut self, value: bool) -> &mut Self
pub fn create(&mut self, value: bool) -> &mut Self
pub fn create_new(&mut self, value: bool) -> &mut Self
pub fn truncate(&mut self, value: bool) -> &mut Self
pub fn mode(&mut self, mode: u32) -> &mut Self
pub fn custom_flags(&mut self, flags: i32) -> &mut Self
pub fn open(&mut self, path: impl AsRef<Path>) -> Result<File>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OpenOptions
impl RefUnwindSafe for OpenOptions
impl Send for OpenOptions
impl Sync for OpenOptions
impl Unpin for OpenOptions
impl UnsafeUnpin for OpenOptions
impl UnwindSafe for OpenOptions
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