pub struct OpenOptions {
read: bool,
write: bool,
append: bool,
truncate: bool,
create: bool,
create_new: bool,
custom_flags: i32,
mode: mode_t,
}
Fields§
§read: bool
§write: bool
§append: bool
§truncate: bool
§create: bool
§create_new: bool
§custom_flags: i32
§mode: mode_t
Implementations§
source§impl OpenOptions
impl OpenOptions
pub fn new() -> OpenOptions
pub fn read(&mut self, read: bool)
pub fn write(&mut self, write: bool)
pub fn append(&mut self, append: bool)
pub fn truncate(&mut self, truncate: bool)
pub fn create(&mut self, create: bool)
pub fn create_new(&mut self, create_new: bool)
pub fn custom_flags(&mut self, flags: i32)
pub fn mode(&mut self, mode: u32)
fn get_access_mode(&self) -> Result<c_int>
fn get_creation_mode(&self) -> Result<c_int>
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 moreAuto Trait Implementations§
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