pub enum TempError {
Show 15 variants
Access(AccessError),
Interrupt(InterruptError),
StorageExhausted(StorageExhaustedError),
OversizedFile(OversizedFileError),
InvalidBasename(InvalidBasenameError),
ExcessiveLinks(ExcessiveLinksError),
FileCount(FileCountError),
PathLength(PathLengthError),
MissingComponent(MissingComponentError),
OOM(OOMError),
NonDirComponent(NonDirComponentError),
Permission(PermissionError),
ReadOnlyFS(ReadOnlyFSError),
BusyExecutable(BusyExecutableError),
TempFileUnsupported(TempFileUnsupportedError),
}Available on
Linux only.Variants§
Access(AccessError)
Interrupt(InterruptError)
StorageExhausted(StorageExhaustedError)
OversizedFile(OversizedFileError)
InvalidBasename(InvalidBasenameError)
ExcessiveLinks(ExcessiveLinksError)
FileCount(FileCountError)
PathLength(PathLengthError)
MissingComponent(MissingComponentError)
OOM(OOMError)
NonDirComponent(NonDirComponentError)
Permission(PermissionError)
ReadOnlyFS(ReadOnlyFSError)
BusyExecutable(BusyExecutableError)
TempFileUnsupported(TempFileUnsupportedError)
Trait Implementations§
Source§impl Error for TempError
impl Error for TempError
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()
Source§impl From<AccessError> for TempError
impl From<AccessError> for TempError
Source§fn from(value: AccessError) -> Self
fn from(value: AccessError) -> Self
Converts to this type from the input type.
Source§impl From<BusyExecutableError> for TempError
impl From<BusyExecutableError> for TempError
Source§fn from(value: BusyExecutableError) -> Self
fn from(value: BusyExecutableError) -> Self
Converts to this type from the input type.
Source§impl From<ExcessiveLinksError> for TempError
impl From<ExcessiveLinksError> for TempError
Source§fn from(value: ExcessiveLinksError) -> Self
fn from(value: ExcessiveLinksError) -> Self
Converts to this type from the input type.
Source§impl From<FileCountError> for TempError
impl From<FileCountError> for TempError
Source§fn from(value: FileCountError) -> Self
fn from(value: FileCountError) -> Self
Converts to this type from the input type.
Source§impl From<InterruptError> for TempError
impl From<InterruptError> for TempError
Source§fn from(value: InterruptError) -> Self
fn from(value: InterruptError) -> Self
Converts to this type from the input type.
Source§impl From<InvalidBasenameError> for TempError
impl From<InvalidBasenameError> for TempError
Source§fn from(value: InvalidBasenameError) -> Self
fn from(value: InvalidBasenameError) -> Self
Converts to this type from the input type.
Source§impl From<MissingComponentError> for TempError
impl From<MissingComponentError> for TempError
Source§fn from(value: MissingComponentError) -> Self
fn from(value: MissingComponentError) -> Self
Converts to this type from the input type.
Source§impl From<NonDirComponentError> for TempError
impl From<NonDirComponentError> for TempError
Source§fn from(value: NonDirComponentError) -> Self
fn from(value: NonDirComponentError) -> Self
Converts to this type from the input type.
Source§impl From<OversizedFileError> for TempError
impl From<OversizedFileError> for TempError
Source§fn from(value: OversizedFileError) -> Self
fn from(value: OversizedFileError) -> Self
Converts to this type from the input type.
Source§impl From<PathLengthError> for TempError
impl From<PathLengthError> for TempError
Source§fn from(value: PathLengthError) -> Self
fn from(value: PathLengthError) -> Self
Converts to this type from the input type.
Source§impl From<PermissionError> for TempError
impl From<PermissionError> for TempError
Source§fn from(value: PermissionError) -> Self
fn from(value: PermissionError) -> Self
Converts to this type from the input type.
Source§impl From<ReadOnlyFSError> for TempError
impl From<ReadOnlyFSError> for TempError
Source§fn from(value: ReadOnlyFSError) -> Self
fn from(value: ReadOnlyFSError) -> Self
Converts to this type from the input type.
Source§impl From<StorageExhaustedError> for TempError
impl From<StorageExhaustedError> for TempError
Source§fn from(value: StorageExhaustedError) -> Self
fn from(value: StorageExhaustedError) -> Self
Converts to this type from the input type.
Source§impl From<TempFileUnsupportedError> for TempError
impl From<TempFileUnsupportedError> for TempError
Source§fn from(value: TempFileUnsupportedError) -> Self
fn from(value: TempFileUnsupportedError) -> Self
Converts to this type from the input type.
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