Struct PersistError
pub struct PersistError<F = File> { pub error: Error, pub file: NamedTempFile<F> }
Error returned when persisting a temporary file fails.
Fields
error: ErrorThe 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,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for PersistError<F>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for PersistError<F>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for PersistError<F>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToString for PersistError<F>
where
T: Display + ?Sized,
fn to_string(&self) -> String
impl<T, U> Into<U> for PersistError<F>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for PersistError<F>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for PersistError<F>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>