Struct PersistError

pub struct PersistError<F = File> { pub error: Error, pub file: NamedTempFile<F> }

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

impl<F> Debug for PersistError<F>

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl<F> Display for PersistError<F>

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl<F> Error for PersistError<F>

fn source(&self) -> Option<&dyn Error + 'static>

Auto Trait Implementations

impl<F = File> !RefUnwindSafe for PersistError<F>

impl<F = File> !UnwindSafe for PersistError<F>

impl<F> Freeze for PersistError<F> where NamedTempFile<F>: Freeze,

impl<F> Send for PersistError<F> where NamedTempFile<F>: Send,

impl<F> Sync for PersistError<F> where NamedTempFile<F>: Sync,

impl<F> Unpin for PersistError<F> where NamedTempFile<F>: Unpin,

impl<F> UnsafeUnpin for PersistError<F> where NamedTempFile<F>: UnsafeUnpin,

Blanket Implementations

impl<T> Any for PersistError<F> where T: 'static + ?Sized,

impl<T> Borrow<T> for PersistError<F> where T: ?Sized,

impl<T> BorrowMut<T> for PersistError<F> where T: ?Sized,

impl<T> From<T> for PersistError<F>

impl<T> ToString for PersistError<F> where T: Display + ?Sized,

impl<T, U> Into<U> for PersistError<F> where U: From<T>,

impl<T, U> TryFrom<U> for PersistError<F> where U: Into<T>,

impl<T, U> TryInto<U> for PersistError<F> where U: TryFrom<T>,