pub enum Error {
WindowNotFound,
DesktopNotFound,
CreateDesktopFailed,
RemoveDesktopFailed,
ClassNotRegistered,
RpcServerNotAvailable,
ComNotInitialized,
ComObjectNotConnected,
ComElementNotFound,
ComError(HRESULT),
ComAllocatedNullPtr,
InternalBorrowError,
}
Variants§
WindowNotFound
Window is not found
DesktopNotFound
Desktop with given ID is not found
CreateDesktopFailed
Creationg of desktop failed
RemoveDesktopFailed
Remove desktop failed
ClassNotRegistered
Unable to create service, ensure that explorer.exe is running
RpcServerNotAvailable
Unable to connect to service
ComNotInitialized
Com is not initialized, call CoInitializeEx or CoIncrementMTAUsage
ComObjectNotConnected
Com object not connected
ComElementNotFound
Generic element not found
ComError(HRESULT)
Some unhandled COM error
ComAllocatedNullPtr
This should not happen, this means that successful COM call allocated a null pointer, in this case it is an error in the COM service, or it’s usage.
InternalBorrowError
Borrow error
Trait Implementations§
source§impl PartialEq for Error
impl PartialEq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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