pub enum Error {
Unsupported,
CursorConfigUnsupported,
BorderConfigUnsupported,
SecondaryWindowsUnsupported,
MinimumUpdateIntervalUnsupported,
DirtyRegionUnsupported,
AlreadyStarted,
DirectXError(Error),
WindowError(Error),
WindowsError(Error),
}Expand description
Errors that can occur when configuring or running a Windows Graphics Capture session.
Variants§
Unsupported
The Windows Graphics Capture API is not available on this OS.
CursorConfigUnsupported
Toggling cursor capture isn’t supported on this platform/OS build.
BorderConfigUnsupported
Toggling the capture border isn’t supported on this platform/OS build.
SecondaryWindowsUnsupported
Capturing secondary (owned) windows isn’t supported on this platform/OS build.
MinimumUpdateIntervalUnsupported
Setting a minimum frame update interval isn’t supported on this platform/OS build.
DirtyRegionUnsupported
Dirty region tracking isn’t supported on this platform/OS build.
AlreadyStarted
Capture has already been started for this session.
DirectXError(Error)
Underlying Direct3D (D3D11) error.
Wraps crate::d3d11::Error.
WindowError(Error)
Window helper error.
Wraps crate::window::Error.
WindowsError(Error)
A Windows Runtime/Win32 API call failed.
Wraps windows::core::Error.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more