pub struct OpenOptions { /* private fields */ }
Implementations§
Source§impl OpenOptions
impl OpenOptions
pub const fn new() -> OpenOptions
pub const fn read(self, read: bool) -> OpenOptions
pub const fn get_read(self) -> bool
pub const fn write(self, write: bool) -> OpenOptions
pub const fn get_write(self) -> bool
pub const fn append(self, append: bool) -> OpenOptions
pub const fn get_append(self) -> bool
pub const fn open(self, filename: Cow<'_, Path>) -> OpenFileRequest<'_>
pub const fn create( self, filename: Cow<'_, Path>, flags: CreateFlags, attrs: FileAttrs, ) -> OpenFileRequest<'_>
Trait Implementations§
Source§impl Clone for OpenOptions
impl Clone for OpenOptions
Source§fn clone(&self) -> OpenOptions
fn clone(&self) -> OpenOptions
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for OpenOptions
impl Debug for OpenOptions
impl Copy for OpenOptions
Auto Trait Implementations§
impl Freeze for OpenOptions
impl RefUnwindSafe for OpenOptions
impl Send for OpenOptions
impl Sync for OpenOptions
impl Unpin 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
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
)