pub enum OpenIntent {
Open,
Create,
OpenOrCreate,
OverwriteOrCreate,
Truncate,
}Expand description
Translated SMB CREATE intent — the small set of cases v1 cares about.
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 Freeze 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