Struct vfs::file::FileOptions
source · pub struct FileOptions {
pub rights: Operations,
pub is_append: bool,
}
Expand description
FileOptions include options that are relevant after the file has been opened. Flags like
TRUNCATE
, which only applies during open time, are not included.
Fields§
§rights: Operations
§is_append: bool
Implementations§
source§impl FileOptions
impl FileOptions
sourcepub fn to_stream_options(&self) -> StreamOptions
pub fn to_stream_options(&self) -> StreamOptions
Converts to StreamOptions
.
Trait Implementations§
source§impl Clone for FileOptions
impl Clone for FileOptions
source§fn clone(&self) -> FileOptions
fn clone(&self) -> FileOptions
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 moresource§impl Debug for FileOptions
impl Debug for FileOptions
source§impl Default for FileOptions
impl Default for FileOptions
source§fn default() -> FileOptions
fn default() -> FileOptions
Returns the “default value” for a type. Read more
source§impl PartialEq for FileOptions
impl PartialEq for FileOptions
source§fn eq(&self, other: &FileOptions) -> bool
fn eq(&self, other: &FileOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for FileOptions
impl Eq for FileOptions
impl StructuralPartialEq for FileOptions
Auto Trait Implementations§
impl Freeze for FileOptions
impl RefUnwindSafe for FileOptions
impl Send for FileOptions
impl Sync for FileOptions
impl Unpin for FileOptions
impl UnwindSafe for FileOptions
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)