Enum homedir::windows::GetHomeError
source · pub enum GetHomeError {
WindowsError(WIN32_ERROR),
NulError(ContainsNul<u16>),
HResult(HRESULT),
WMIError(WMIError),
}
Expand description
The error type returned by get_home
upon failure.
Variants§
WindowsError(WIN32_ERROR)
Represents an error code returned by the Windows API. An interpretation of this error code’s meaning can be found on Microsoft’s documentation page.
NulError(ContainsNul<u16>)
This variant occurs when the user passes a string reference which contains a null character '\0'
to the
get_home
function.
HResult(HRESULT)
Represents an HRESULT returned by the Windows API.
WMIError(WMIError)
Represents an error returned by the wmi crate.
Trait Implementations§
source§impl Debug for GetHomeError
impl Debug for GetHomeError
source§impl Display for GetHomeError
impl Display for GetHomeError
source§impl Error for GetHomeError
impl Error for GetHomeError
source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
1.30.0 · 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<ContainsNul<u16>> for GetHomeError
impl From<ContainsNul<u16>> for GetHomeError
source§fn from(value: ContainsNul<u16>) -> Self
fn from(value: ContainsNul<u16>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for GetHomeError
impl Send for GetHomeError
impl Sync for GetHomeError
impl Unpin for GetHomeError
impl UnwindSafe for GetHomeError
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