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: open or create a directory.
non_directory: boolFILE_NON_DIRECTORY_FILE was set on CREATE: fail if the target is a directory.
delete_on_close: boolFILE_DELETE_ON_CLOSE was set on CREATE.
Trait Implementations§
Auto Trait Implementations§
impl Freeze 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