pub struct PersistError {
pub error: Error,
pub file: NamedTempFile,
}
Expand description
Error returned when persisting a temporary file fails.
Fields§
§error: Error
The underlying IO error.
file: NamedTempFile
The temporary file that couldn’t be persisted.
Trait Implementations§
Source§impl Debug for PersistError
impl Debug for PersistError
Source§impl Display for PersistError
impl Display for PersistError
Source§impl Error for PersistError
impl Error for PersistError
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<PersistError> for Error
impl From<PersistError> for Error
Source§fn from(error: PersistError) -> Error
fn from(error: PersistError) -> Error
Converts to this type from the input type.
Source§impl From<PersistError> for NamedTempFile
impl From<PersistError> for NamedTempFile
Source§fn from(error: PersistError) -> NamedTempFile ⓘ
fn from(error: PersistError) -> NamedTempFile ⓘ
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PersistError
impl !RefUnwindSafe for PersistError
impl Send for PersistError
impl Sync for PersistError
impl Unpin for PersistError
impl !UnwindSafe for PersistError
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