pub struct OpenOptions {
pub read: bool,
pub write: bool,
pub write_attributes: bool,
pub intent: OpenIntent,
pub directory: bool,
pub non_directory: bool,
pub delete_on_close: bool,
}Expand description
Options passed to ShareBackend::open.
Fields§
§read: boolThe open was granted FILE_READ_DATA, or has no data write access.
At least one of read and write is set.
write: boolThe open was granted FILE_WRITE_DATA or FILE_APPEND_DATA.
write_attributes: boolThe open was granted FILE_WRITE_ATTRIBUTES: the handle must be able
to change times and attributes, including on a read-only file.
intent: OpenIntentCREATE disposition.
directory: boolFILE_DIRECTORY_FILE was set on CREATE, or the name ended in
::$INDEX_ALLOCATION: open or create a directory.
non_directory: boolFILE_NON_DIRECTORY_FILE was set on CREATE, or the name ended in
::$DATA: fail if the target is a directory.
delete_on_close: boolFILE_DELETE_ON_CLOSE was set on CREATE.
Trait Implementations§
Auto Trait Implementations§
impl Forget for OpenOptions
impl Freeze for OpenOptions
impl Move for OpenOptions
impl RefUnwindSafe for OpenOptions
impl Send for OpenOptions
impl Sync for OpenOptions
impl Unpin for OpenOptions
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
Source§type NoneType = T
type NoneType = T
The type of the none-equivalent value that
NoneValue::null_value produces.Source§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.