pub enum Disposition {
Supersede,
Open,
Create,
OpenIf,
Overwrite,
OverwriteIf,
}Expand description
NT create disposition ([MS-SMB] §2.2.4.9.1 CreateDisposition,
originally [MS-CIFS] §2.2.4.63.1).
Variants§
Supersede
Overwrite existing or create new (attributes superseded).
Open
Open only; fail when missing.
Create
Create only; fail when present.
OpenIf
Open existing or create new.
Overwrite
Open existing and truncate; fail when missing.
OverwriteIf
Truncate-or-create.
Implementations§
Trait Implementations§
Source§impl Clone for Disposition
impl Clone for Disposition
Source§fn clone(&self) -> Disposition
fn clone(&self) -> Disposition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Disposition
Source§impl Debug for Disposition
impl Debug for Disposition
impl Eq for Disposition
Source§impl PartialEq for Disposition
impl PartialEq for Disposition
Source§fn eq(&self, other: &Disposition) -> bool
fn eq(&self, other: &Disposition) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Disposition
Auto Trait Implementations§
impl Freeze for Disposition
impl RefUnwindSafe for Disposition
impl Send for Disposition
impl Sync for Disposition
impl Unpin for Disposition
impl UnsafeUnpin for Disposition
impl UnwindSafe for Disposition
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