pub enum WindowHelperError {
WindowsApiError(String),
FileNameError,
StringConversionError,
MicrosoftInternalExe,
ObsExe,
InvalidState(String),
NoWindowFound,
IntConversionError(String),
}Expand description
Error type for window helper operations.
Variants§
WindowsApiError(String)
Error from Windows API
FileNameError
Failed to get file name from path
StringConversionError
Failed to convert to string
MicrosoftInternalExe
Microsoft internal executable (filtered out)
ObsExe
OBS executable (filtered out)
InvalidState(String)
Invalid state encountered
NoWindowFound
No window found
IntConversionError(String)
Integer conversion error
Trait Implementations§
Source§impl Clone for WindowHelperError
impl Clone for WindowHelperError
Source§fn clone(&self) -> WindowHelperError
fn clone(&self) -> WindowHelperError
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WindowHelperError
impl Debug for WindowHelperError
Source§impl Display for WindowHelperError
impl Display for WindowHelperError
Source§impl Error for WindowHelperError
impl Error for WindowHelperError
1.30.0§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§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 WindowHelperError
Available on Windows only.
impl From<Error> for WindowHelperError
Available on Windows only.
Source§impl From<Infallible> for WindowHelperError
impl From<Infallible> for WindowHelperError
Source§fn from(_: Infallible) -> Self
fn from(_: Infallible) -> Self
Converts to this type from the input type.
Source§impl From<TryFromIntError> for WindowHelperError
impl From<TryFromIntError> for WindowHelperError
Source§fn from(err: TryFromIntError) -> Self
fn from(err: TryFromIntError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for WindowHelperError
impl PartialEq for WindowHelperError
impl Eq for WindowHelperError
impl StructuralPartialEq for WindowHelperError
Auto Trait Implementations§
impl Freeze for WindowHelperError
impl RefUnwindSafe for WindowHelperError
impl Send for WindowHelperError
impl Sync for WindowHelperError
impl Unpin for WindowHelperError
impl UnwindSafe for WindowHelperError
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)