pub enum GraphicsCaptureApiError<E> {
FailedToJoinThread,
FailedToInitWinRT,
FailedToCreateDispatcherQueueController,
FailedToShutdownDispatcherQueue,
FailedToSetDispatcherQueueCompletedHandler,
FailedToRunMessageLoop,
FailedToStartCaptureThread,
ItemConvertFailed,
DirectXError(Error),
GraphicsCaptureApiError(Error),
NewHandlerError(E),
FrameHandlerError(E),
}Expand description
Errors that can occur while initializing and running the Windows Graphics Capture pipeline.
Variants§
FailedToJoinThread
Joining the worker thread failed (panic or OS-level join error).
FailedToInitWinRT
Failed to initialize the Windows Runtime for multithreaded apartment.
Occurs when RoInitialize(RO_INIT_MULTITHREADED) returns an error other than S_FALSE.
FailedToCreateDispatcherQueueController
Creating the dispatcher queue controller for the message loop failed.
FailedToShutdownDispatcherQueue
Shutting down the dispatcher queue failed.
FailedToSetDispatcherQueueCompletedHandler
Registering the dispatcher queue completion handler failed.
FailedToRunMessageLoop
The Windows message loop for the capture thread failed.
FailedToStartCaptureThread
The free-threaded capture worker exited before publishing its control handles.
ItemConvertFailed
The provided item could not be converted into a GraphicsCaptureItem.
This happens when
[crate::settings::TryIntoCaptureItemWithDetails::try_into_capture_item_with_details]
fails for the item passed in crate::settings::Settings.
DirectXError(Error)
Underlying Direct3D (D3D11) error.
Wraps crate::d3d11::Error.
GraphicsCaptureApiError(Error)
Error produced by the Windows Graphics Capture API wrapper.
NewHandlerError(E)
Error returned by the user handler when constructing it via
GraphicsCaptureApiHandler::new.
FrameHandlerError(E)
Error returned by the user handler during frame processing via
GraphicsCaptureApiHandler::on_frame_arrived or from
GraphicsCaptureApiHandler::on_closed.
Trait Implementations§
Source§impl<E: Clone> Clone for GraphicsCaptureApiError<E>
impl<E: Clone> Clone for GraphicsCaptureApiError<E>
Source§fn clone(&self) -> GraphicsCaptureApiError<E>
fn clone(&self) -> GraphicsCaptureApiError<E>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<E: Debug> Debug for GraphicsCaptureApiError<E>
impl<E: Debug> Debug for GraphicsCaptureApiError<E>
Source§impl<E> Display for GraphicsCaptureApiError<E>where
E: Display,
impl<E> Display for GraphicsCaptureApiError<E>where
E: Display,
impl<E: Eq> Eq for GraphicsCaptureApiError<E>
Source§impl<E> Error for GraphicsCaptureApiError<E>
impl<E> Error for GraphicsCaptureApiError<E>
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()
Source§impl<E> From<Error> for GraphicsCaptureApiError<E>
impl<E> From<Error> for GraphicsCaptureApiError<E>
Source§impl<E> From<GraphicsCaptureApiError<E>> for CaptureControlError<E>
impl<E> From<GraphicsCaptureApiError<E>> for CaptureControlError<E>
Source§fn from(source: GraphicsCaptureApiError<E>) -> Self
fn from(source: GraphicsCaptureApiError<E>) -> Self
Source§impl<E: PartialEq> PartialEq for GraphicsCaptureApiError<E>
impl<E: PartialEq> PartialEq for GraphicsCaptureApiError<E>
impl<E: PartialEq> StructuralPartialEq for GraphicsCaptureApiError<E>
Auto Trait Implementations§
impl<E> Freeze for GraphicsCaptureApiError<E>where
E: Freeze,
impl<E> RefUnwindSafe for GraphicsCaptureApiError<E>where
E: RefUnwindSafe,
impl<E> Send for GraphicsCaptureApiError<E>where
E: Send,
impl<E> Sync for GraphicsCaptureApiError<E>where
E: Sync,
impl<E> Unpin for GraphicsCaptureApiError<E>where
E: Unpin,
impl<E> UnsafeUnpin for GraphicsCaptureApiError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for GraphicsCaptureApiError<E>where
E: UnwindSafe,
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