Struct tempfile::PersistError
source · 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