[][src]Enum custom_codes::FileOps

pub enum FileOps {
    DirAccessDenied,
    DirIsReadOnly,
    DirectoryAppendOnly,
    FileIsReadOnly,
    FileIsAppendOnly,
    DeletionDenied,
    DeletionToBeDone,
    ReadDone,
    WriteDone,
    UpdateDone,
    DeletionDone,
    ReadInProgress,
    WriteInProgess,
    UpdateInProgress,
    DeletionInProgress,
    DirOpened,
    DirClosed,
    DirModified,
    OpenedFile,
    ClosedFile,
    CreateDenied,
    ReadDenied,
    UpdateDenied,
    WriteDenied,
    AppendDenied,
    MetadataAdded,
    MetadataNotAvailable,
    MetadataChanged,
    MetadataDeleted,
    OpenTrue,
    OpenFalse,
    CreateTrue,
    CreateFalse,
    WriteTrue,
    WriteFalse,
    AppendTrue,
    DeleteTrue,
}

File operations

Variants

DirAccessDenied

Directory Access Denied

DirIsReadOnly

Directory is read only

DirectoryAppendOnly

Directory is append only

FileIsReadOnly

File is read only

FileIsAppendOnly

File is append only

DeletionDenied

Delete operation denied due to permissions

DeletionToBeDone

Deletion could not be done as another operation is reading the file

ReadDone

Read has been completed especially useful in async operations

WriteDone

Write operation has been competed

UpdateDone

Update operation completed

DeletionDone

Deletion operation completed

ReadInProgress

Read is in progress

WriteInProgess

Write is in progress

UpdateInProgress

Update is in progress

DeletionInProgress

File has been deleted

DirOpened

Directory has been opened

DirClosed

Directory is no longer open

DirModified

Directory has been modified

OpenedFile

File has been opened

ClosedFile

File has been closed

CreateDenied

Creation of the file is denied

ReadDenied

Read acess to file is denied

UpdateDenied

Update to the file is denied

WriteDenied

Writing to the file has been denied

AppendDenied

Appending to the file has been denied

MetadataAdded

Metadata has been added to file or directory

MetadataNotAvailable

File or directory does not contain Metadata

MetadataChanged

metadata changed

MetadataDeleted

Netadata has been Deleted

OpenTrue

Open a file. any open can read contents

OpenFalse

Do not open file

CreateTrue

Create a file if it does not exist

CreateFalse

Do Not Create a file it does not exist

WriteTrue

Write to a file

WriteFalse

Do not write to file

AppendTrue

Append to a file

DeleteTrue

Delete a file if it exists,

Trait Implementations

impl PartialEq<FileOps> for FileOps[src]

#[must_use] fn ne(&self, other: &Rhs) -> bool1.0.0[src]

This method tests for !=.

impl Clone for FileOps[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Eq for FileOps[src]

impl Debug for FileOps[src]

impl Serialize for FileOps[src]

impl<'de> Deserialize<'de> for FileOps[src]

Auto Trait Implementations

impl Unpin for FileOps

impl Sync for FileOps

impl Send for FileOps

impl RefUnwindSafe for FileOps

impl UnwindSafe for FileOps

Blanket Implementations

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

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

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]