pub struct FsOpenOptions {
pub read: bool,
pub write: bool,
pub append: bool,
pub create: bool,
pub truncate: bool,
pub create_new: bool,
pub mode: Option<u32>,
}Expand description
Options used when opening a file handle.
Fields§
§read: boolOpen for reading.
write: boolOpen for writing.
append: boolAppend writes to the end.
create: boolCreate the file if it is missing.
truncate: boolTruncate the file after opening.
create_new: boolCreate a new file and fail if it already exists.
mode: Option<u32>Permission bits to set on creation.
Trait Implementations§
Source§impl Clone for FsOpenOptions
impl Clone for FsOpenOptions
Source§fn clone(&self) -> FsOpenOptions
fn clone(&self) -> FsOpenOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FsOpenOptions
impl Debug for FsOpenOptions
Source§impl Default for FsOpenOptions
impl Default for FsOpenOptions
Source§fn default() -> FsOpenOptions
fn default() -> FsOpenOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FsOpenOptions
impl<'de> Deserialize<'de> for FsOpenOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FsOpenOptions
impl RefUnwindSafe for FsOpenOptions
impl Send for FsOpenOptions
impl Sync for FsOpenOptions
impl Unpin for FsOpenOptions
impl UnsafeUnpin for FsOpenOptions
impl UnwindSafe for FsOpenOptions
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