Struct photonio::fs::OpenOptions
source · pub struct OpenOptions { /* private fields */ }Expand description
Options to configure how a file is opened.
This type is an async version of std::fs::OpenOptions.
Implementations
sourceimpl OpenOptions
impl OpenOptions
sourcepub fn new() -> OpenOptions
pub fn new() -> OpenOptions
See also std::fs::OpenOptions::new.
sourcepub fn read(&mut self, read: bool) -> &mut OpenOptions
pub fn read(&mut self, read: bool) -> &mut OpenOptions
See also std::fs::OpenOptions::read.
sourcepub fn write(&mut self, write: bool) -> &mut OpenOptions
pub fn write(&mut self, write: bool) -> &mut OpenOptions
See also std::fs::OpenOptions::write.
sourcepub fn append(&mut self, append: bool) -> &mut OpenOptions
pub fn append(&mut self, append: bool) -> &mut OpenOptions
See also std::fs::OpenOptions::append.
sourcepub fn truncate(&mut self, truncate: bool) -> &mut OpenOptions
pub fn truncate(&mut self, truncate: bool) -> &mut OpenOptions
See also std::fs::OpenOptions::truncate.
sourcepub fn create(&mut self, create: bool) -> &mut OpenOptions
pub fn create(&mut self, create: bool) -> &mut OpenOptions
See also std::fs::OpenOptions::create.
sourcepub fn create_new(&mut self, create_new: bool) -> &mut OpenOptions
pub fn create_new(&mut self, create_new: bool) -> &mut OpenOptions
See also std::fs::OpenOptions::create_new.
Trait Implementations
sourceimpl Debug for OpenOptions
impl Debug for OpenOptions
sourceimpl Default for OpenOptions
impl Default for OpenOptions
sourcefn default() -> OpenOptions
fn default() -> OpenOptions
Returns the “default value” for a type. Read more
sourceimpl OpenOptionsExt for OpenOptions
impl OpenOptionsExt for OpenOptions
sourcefn mode(&mut self, mode: u32) -> &mut OpenOptions
fn mode(&mut self, mode: u32) -> &mut OpenOptions
Sets the mode bits that a new file will be created with. Read more
sourcefn custom_flags(&mut self, flags: i32) -> &mut OpenOptions
fn custom_flags(&mut self, flags: i32) -> &mut OpenOptions
Auto Trait Implementations
impl RefUnwindSafe for OpenOptions
impl Send for OpenOptions
impl Sync for OpenOptions
impl Unpin for OpenOptions
impl UnwindSafe for OpenOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more