pub enum TempError {
FileIsNone,
InvalidFileOrPath,
IO(Error),
Regex(Error),
FileExists(PathBuf),
}
Expand description
Errors that can occur when using TempDir
or TempFile
.
Variants§
FileIsNone
Occurs when attempting access a None
file–one which was already closed.
InvalidFileOrPath
A given file or path do not match.
IO(Error)
An IO error.
Regex(Error)
A RegEx
error.
FileExists(PathBuf)
The given path already exists.
Trait Implementations§
Source§impl Error for TempError
impl Error for TempError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Auto Trait Implementations§
impl Freeze for TempError
impl !RefUnwindSafe for TempError
impl Send for TempError
impl Sync for TempError
impl Unpin for TempError
impl !UnwindSafe for TempError
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