Struct PersistError

struct PersistError<F = std::fs::File> { ... }

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.

Implementations

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

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

impl<F> Debug for PersistError<F>

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

impl<F> Display for PersistError<F>

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

impl<F> Error for PersistError<F>

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

impl<F> Freeze for PersistError<F>

impl<F> Send for PersistError<F>

impl<F> Sync for PersistError<F>

impl<F> Unpin for PersistError<F>

impl<F> UnsafeUnpin for PersistError<F>

impl<T> Any for PersistError<F>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for PersistError<F>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for PersistError<F>

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> From for PersistError<F>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToString for PersistError<F>

fn to_string(self: &Self) -> String

impl<T, U> Into for PersistError<F>

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for PersistError<F>

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for PersistError<F>

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>