pub enum GraphicsCaptureApiError<E> {
FailedToJoinThread,
FailedToInitWinRT,
FailedToCreateDispatcherQueueController,
FailedToShutdownDispatcherQueue,
FailedToSetDispatcherQueueCompletedHandler,
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.
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 ยท 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,
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>
Sourceยงfn eq(&self, other: &GraphicsCaptureApiError<E>) -> bool
fn eq(&self, other: &GraphicsCaptureApiError<E>) -> bool
self and other values to be equal, and is used by ==.impl<E: Eq> Eq for GraphicsCaptureApiError<E>
impl<E> 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