[][src]Enum nt_native::CreateDisposition

pub enum CreateDisposition {
    Supersede,
    Create,
    Open,
    OpenOrCreate,
    Overwrite,
    OverwriteOrCreate,
}

Variants

Supersede

If the file already exists, replace it with the given file. If it does not, create the given file.

Create

If the file already exists, fail the request and do not create or open the given file. If it does not, create the given file.

Open

If the file already exists, open it instead of creating a new file. If it does not, fail the request and do not create a new file.

OpenOrCreate

If the file already exists, open it. If it does not, create the given file.

Overwrite

If the file already exists, open it and overwrite it. If it does not, fail the request.

OverwriteOrCreate

If the file already exists, open it and overwrite it. If it does not, create the given file.

Methods

impl CreateDisposition[src]

pub fn to_u32(&self) -> u32[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.