Struct std::fs::OpenOptions
Re-export from std::fs::unix::OpenOptions
Options for how the file should be opened.
Methods
impl OpenOptions { ... }
-
fn new() -> OpenOptions
-
fn read(self: &mut OpenOptions, read: bool) -> &mut OpenOptions
Sets the option for read access.
-
fn write(self: &mut OpenOptions, write: bool) -> &mut OpenOptions
Sets the option for write access.
-
fn append(self: &mut OpenOptions, append: bool) -> &mut OpenOptions
Sets the option for append access.
-
fn truncate(self: &mut OpenOptions, truncate: bool) -> &mut OpenOptions
Sets the option for truncate access.
-
fn create(self: &mut OpenOptions, create: bool) -> &mut OpenOptions
Sets the option for create access.
-
fn create_new(self: &mut OpenOptions, create_new: bool) -> &mut OpenOptions
Sets the option for create new access.
-
fn custom_flags(self: &mut OpenOptions, flags: i32) -> &mut OpenOptions
Sets the custom flags.
-
fn mode(self: &mut OpenOptions, mode: u32) -> &mut OpenOptions
Sets the mode for creation.
-
fn get_access_mode(self: &OpenOptions) -> c_int
-
fn get_creation_mode(self: &OpenOptions) -> c_int