Struct tempfile::PersistError
source · pub struct PersistError {
pub error: Error,
pub file: NamedTempFile,
}
Expand description
Error returned when persisting a temporary file fails.
Fields§
§error: Error
The underlying IO error.
file: NamedTempFile
The temporary file that couldn’t be persisted.
Trait Implementations§
source§impl Debug for PersistError
impl Debug for PersistError
source§impl Display for PersistError
impl Display for PersistError
source§impl Error for PersistError
impl Error for PersistError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 From<PersistError> for Error
impl From<PersistError> for Error
source§fn from(error: PersistError) -> Error
fn from(error: PersistError) -> Error
Converts to this type from the input type.
source§impl From<PersistError> for NamedTempFile
impl From<PersistError> for NamedTempFile
source§fn from(error: PersistError) -> NamedTempFile ⓘ
fn from(error: PersistError) -> NamedTempFile ⓘ
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for PersistError
impl Send for PersistError
impl Sync for PersistError
impl Unpin for PersistError
impl !UnwindSafe for PersistError
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