pub struct FileOperationError {
pub path: Cow<'static, str>,
pub operation: Cow<'static, str>,
pub error_code: Option<i32>,
}Expand description
File operation error.
Fields§
§path: Cow<'static, str>The file path.
operation: Cow<'static, str>The operation that failed.
error_code: Option<i32>Windows error code if available.
Implementations§
Trait Implementations§
Source§impl Debug for FileOperationError
impl Debug for FileOperationError
Source§impl Display for FileOperationError
impl Display for FileOperationError
Source§impl Error for FileOperationError
impl Error for FileOperationError
1.30.0 · 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 FileOperationError
impl RefUnwindSafe for FileOperationError
impl Send for FileOperationError
impl Sync for FileOperationError
impl Unpin for FileOperationError
impl UnsafeUnpin for FileOperationError
impl UnwindSafe for FileOperationError
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