[][src]Enum custom_codes::FileOps

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

File operations

Examples

let foo = FileOps::DirAccessDenied;
assert_eq!(foo, FileOps::DirAccessDenied);

Variants

DirCreated

Directory Created

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

AlreadyExists

The file or directory already exists

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

OpenError

Unable To Open File

EncounteredErrors(String)

The operation comleted with a given error

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

Interrupted

The Operation was interrupted and can be resumed

DeleteTrue

Delete a file if it exists,

Trait Implementations

impl Clone for FileOps[src]

impl Debug for FileOps[src]

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

impl Eq for FileOps[src]

impl PartialEq<FileOps> for FileOps[src]

impl Serialize for FileOps[src]

impl StructuralEq for FileOps[src]

impl StructuralPartialEq for FileOps[src]

Auto Trait Implementations

impl RefUnwindSafe for FileOps

impl Send for FileOps

impl Sync for FileOps

impl Unpin for FileOps

impl UnwindSafe for FileOps

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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.