pub enum CompleteWritingError {
Io(Error),
FileWritingFailed,
SyncError,
}
Variants§
Io(Error)
An I/O error occurred.
FileWritingFailed
Writing to the file failed.
SyncError
Failed to synchronize the file with the underlying buffer.
Trait Implementations§
Source§impl Debug for CompleteWritingError
impl Debug for CompleteWritingError
Source§impl Display for CompleteWritingError
impl Display for CompleteWritingError
Source§impl Error for CompleteWritingError
impl Error for CompleteWritingError
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 CompleteWritingError
impl !RefUnwindSafe for CompleteWritingError
impl Send for CompleteWritingError
impl Sync for CompleteWritingError
impl Unpin for CompleteWritingError
impl !UnwindSafe for CompleteWritingError
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