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