fn from(op: &str) -> FileOperation {
        match op {
            "Create" => FileOperation::Create,
            "Open" => FileOperation::Open,
            "Read" => FileOperation::Read,
            "ReadAt" => FileOperation::ReadAt,
            "Write" => FileOperation::Write,
            "WriteAt" => FileOperation::WriteAt,
            "Close" => FileOperation::Close,
            "GetInfo" => FileOperation::GetInfo,
            "Delete" => FileOperation::Delete,
            "WriteDirect" => FileOperation::WriteDirect,
            "Rename" => FileOperation::FileRename,
            "MkDir" => FileOperation::MkDir,
            _ => FileOperation::Unknown,
        }
    }
/// Construct a FileOperation enum based on a str.
Construct a FileOperation enum based on a str.
Construct a FileOperation enum based on a str .
fn from(op: &str) -> FileOperation {
        match op {
            "Create" => FileOperation::Create,
            "Open" => FileOperation::Open,
            "Read" => FileOperation::Read,
            "ReadAt" => FileOperation::ReadAt,
            "Write" => FileOperation::Write,
            "WriteAt" => FileOperation::WriteAt,
            "Close" => FileOperation::Close,
            "GetInfo" => FileOperation::GetInfo,
            "Delete" => FileOperation::Delete,
            "WriteDirect" => FileOperation::WriteDirect,
            "Rename" => FileOperation::FileRename,
            "MkDir" => FileOperation::MkDir,
            _ => FileOperation::Unknown,
        }
    }
fn from ( op : & str ) -> FileOperation { match op { " " => FileOperation :: Create , " " => FileOperation :: Open , " " => FileOperation :: Read , " " => FileOperation :: ReadAt , " " => FileOperation :: Write , " " => FileOperation :: WriteAt , " " => FileOperation :: Close , " " => FileOperation :: GetInfo , " " => FileOperation :: Delete , " " => FileOperation :: WriteDirect , " " => FileOperation :: FileRename , " " => FileOperation :: MkDir , _ => FileOperation :: Unknown , } }
Construct a FileOperation enum based on a str.
Construct a FileOperation enum based on a str .
op
&str
op
&str