pub struct OpenOptions {
pub read: bool,
pub write: bool,
pub intent: OpenIntent,
pub directory: bool,
pub non_directory: bool,
pub delete_on_close: bool,
}Expand description
Options passed to ShareBackend::open. v1 keeps this tight on purpose;
extra knobs become methods later if a backend genuinely needs them.
Fields§
§read: boolRead access requested.
write: boolWrite access requested.
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