pub enum FileError {
NotFound(PathBuf),
PermissionDenied(PathBuf),
ConflictDetected(PathBuf),
InvalidContent(String),
VerificationFailed(String),
BackupFailed(String),
BackupCorrupted,
TransactionFailed(String),
RollbackFailed(String),
GitError(String),
DiffError(String),
IoError(Error),
}Expand description
Errors that can occur during file operations
Variants§
NotFound(PathBuf)
File not found at the specified path
PermissionDenied(PathBuf)
Permission denied for the operation
ConflictDetected(PathBuf)
Conflict detected at path: file already exists
InvalidContent(String)
Invalid content provided
VerificationFailed(String)
Content verification failed
BackupFailed(String)
Backup operation failed
BackupCorrupted
Backup integrity check failed: hash mismatch
TransactionFailed(String)
Transaction operation failed
RollbackFailed(String)
Rollback operation failed
GitError(String)
Git operation failed
DiffError(String)
Diff generation failed
IoError(Error)
IO error
Trait Implementations§
Source§impl Error for FileError
impl Error for FileError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for FileError
impl !RefUnwindSafe for FileError
impl Send for FileError
impl Sync for FileError
impl Unpin for FileError
impl !UnwindSafe for FileError
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