#[non_exhaustive]pub enum OpenIntent {
Open,
Create,
OpenOrCreate,
OverwriteOrCreate,
Truncate,
}Expand description
SMB CREATE disposition as seen by a backend.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Open
FILE_OPEN: open existing only; fail if missing.
Create
FILE_CREATE: create new only; fail if exists.
OpenOrCreate
FILE_OPEN_IF: open existing or create new.
OverwriteOrCreate
FILE_OVERWRITE_IF: open existing (truncating) or create new.
Truncate
FILE_OVERWRITE: open existing and truncate; fail if missing.
Trait Implementations§
Source§impl Clone for OpenIntent
impl Clone for OpenIntent
impl Copy for OpenIntent
Source§impl Debug for OpenIntent
impl Debug for OpenIntent
impl Eq for OpenIntent
Source§impl PartialEq for OpenIntent
impl PartialEq for OpenIntent
impl StructuralPartialEq for OpenIntent
Auto Trait Implementations§
impl Forget for OpenIntent
impl Freeze for OpenIntent
impl Move for OpenIntent
impl RefUnwindSafe for OpenIntent
impl Send for OpenIntent
impl Sync for OpenIntent
impl Unpin for OpenIntent
impl UnsafeUnpin for OpenIntent
impl UnwindSafe for OpenIntent
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