pub enum FileObjError {
ReadFile(Error),
FromUtf8Error(String, FromUtf8Error),
DisplayStringFailed(Error),
MkDirFailed(Error),
OpenPatchFileFailed(Error),
WritePatchFailed(Error),
}Expand description
Errors related to FileObj methods’ results.
Variants§
ReadFile(Error)
Error when failing to read a file’s contents.
FromUtf8Error(String, FromUtf8Error)
Error when failing to convert a file’s contents to a UTF-8 string.
DisplayStringFailed(Error)
Error when failing to generate a patch for a file.
MkDirFailed(Error)
Error when failing to create the cache directory for the patch file.
OpenPatchFileFailed(Error)
Error when failing to open the patch file for writing.
WritePatchFailed(Error)
Error when failing to write to the patch file.
Trait Implementations§
Source§impl Debug for FileObjError
impl Debug for FileObjError
Source§impl Display for FileObjError
impl Display for FileObjError
Source§impl Error for FileObjError
impl Error for FileObjError
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()
Source§impl From<FileObjError> for ClientError
impl From<FileObjError> for ClientError
Source§fn from(source: FileObjError) -> Self
fn from(source: FileObjError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for FileObjError
impl !UnwindSafe for FileObjError
impl Freeze for FileObjError
impl Send for FileObjError
impl Sync for FileObjError
impl Unpin for FileObjError
impl UnsafeUnpin for FileObjError
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