pub struct OpenOptions {
pub read: bool,
pub write: bool,
pub create: bool,
pub create_new: bool,
pub truncate: bool,
pub direct: bool,
pub dsync: bool,
}Fields§
§read: bool§write: bool§create: bool§create_new: bool§truncate: bool§direct: bool§dsync: boolImplementations§
Source§impl OpenOptions
impl OpenOptions
pub fn new() -> Self
pub fn read(self, read: bool) -> Self
pub fn write(self, write: bool) -> Self
pub fn create(self, create: bool) -> Self
pub fn create_new(self, create_new: bool) -> Self
pub fn truncate(self, truncate: bool) -> Self
pub fn direct(self, direct: bool) -> Self
pub fn dsync(self, dsync: bool) -> Self
Trait Implementations§
Source§impl Clone for OpenOptions
impl Clone for OpenOptions
Source§fn clone(&self) -> OpenOptions
fn clone(&self) -> OpenOptions
Returns a duplicate 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 Default for OpenOptions
impl Default for OpenOptions
Source§fn default() -> OpenOptions
fn default() -> OpenOptions
Returns the “default value” for a type. Read more
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