pub enum WindowsUsersError {
CoInitializeExFailed(String),
WindowsError(Error),
WindowsErrorWithParmnum {
parm: ParmnumError,
source: Error,
},
Utf16ConversionError(FromUtf16Error),
UserTypeError(InvalidUserProperty),
}Expand description
Deriving common traits to automatically implement error handling functionality.
Variants§
CoInitializeExFailed(String)
Error returned when CoInitializeEx fails during COM initialization.
WindowsError(Error)
A general Windows API error wrapped from the windows_result crate.
WindowsErrorWithParmnum
Windows API error with parameter information.
Fields
§
parm: ParmnumErrorThe parameter that caused the error.
Utf16ConversionError(FromUtf16Error)
Error returned when converting a UTF-16 string to a Rust String fails.
UserTypeError(InvalidUserProperty)
Error returned when an invalid user property value is encountered during conversion.
Trait Implementations§
Source§impl Debug for WindowsUsersError
impl Debug for WindowsUsersError
Source§impl Display for WindowsUsersError
impl Display for WindowsUsersError
Source§impl Error for WindowsUsersError
impl Error for WindowsUsersError
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<Error> for WindowsUsersError
impl From<Error> for WindowsUsersError
Source§impl From<FromUtf16Error> for WindowsUsersError
impl From<FromUtf16Error> for WindowsUsersError
Source§fn from(source: FromUtf16Error) -> Self
fn from(source: FromUtf16Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WindowsUsersError
impl RefUnwindSafe for WindowsUsersError
impl Send for WindowsUsersError
impl Sync for WindowsUsersError
impl Unpin for WindowsUsersError
impl UnsafeUnpin for WindowsUsersError
impl UnwindSafe for WindowsUsersError
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