Struct tempfile::file::PersistError [−][src]
pub struct PersistError {
pub error: Error,
pub file: NamedTempFile,
}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
impl Debug for PersistError[src]
impl Debug for PersistErrorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl From<PersistError> for Error[src]
impl From<PersistError> for Errorfn from(error: PersistError) -> Error[src]
fn from(error: PersistError) -> ErrorPerforms the conversion.
impl From<PersistError> for NamedTempFile[src]
impl From<PersistError> for NamedTempFileⓘImportant traits for NamedTempFilefn from(error: PersistError) -> NamedTempFile[src]
ⓘImportant traits for NamedTempFile
fn from(error: PersistError) -> NamedTempFilePerforms the conversion.
impl Display for PersistError[src]
impl Display for PersistErrorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Error for PersistError[src]
impl Error for PersistErrorfn description(&self) -> &str[src]
fn description(&self) -> &strThis method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>[src]
fn cause(&self) -> Option<&Error>The lower-level cause of this error, if any. Read more
fn type_id(&self) -> TypeId where
Self: 'static, [src]
fn type_id(&self) -> TypeId where
Self: 'static, 🔬 This is a nightly-only experimental API. (error_type_id)
unclear whether to commit to this public implementation detail
Get the TypeId of self
Auto Trait Implementations
impl Send for PersistError
impl Send for PersistErrorimpl Sync for PersistError
impl Sync for PersistError