pub enum GraphicsCaptureItemType {
Monitor((GraphicsCaptureItem, Monitor)),
Window((GraphicsCaptureItem, Window)),
Unknown((GraphicsCaptureItem, HwndGuard)),
}Expand description
An enumeration of item types that can be captured.
Wraps the WinRT GraphicsCaptureItem together with additional details about the source:
Monitorfor display monitors,Windowfor top-level windows,crate::graphics_capture_picker::HwndGuardfor unknown HWND-based sources.
Variantsยง
Monitor((GraphicsCaptureItem, Monitor))
A display monitor. Contains the GraphicsCaptureItem and its Monitor details.
Window((GraphicsCaptureItem, Window))
An application window. Contains the GraphicsCaptureItem and its Window details.
Unknown((GraphicsCaptureItem, HwndGuard))
An unknown capture item type (typically created from an HWND). Contains the
GraphicsCaptureItem and the associated
crate::graphics_capture_picker::HwndGuard.
Trait Implementationsยง
Sourceยงimpl TryInto<GraphicsCaptureItemType> for Monitor
impl TryInto<GraphicsCaptureItemType> for Monitor
Auto Trait Implementationsยง
impl Freeze for GraphicsCaptureItemType
impl RefUnwindSafe for GraphicsCaptureItemType
impl !Send for GraphicsCaptureItemType
impl !Sync for GraphicsCaptureItemType
impl Unpin for GraphicsCaptureItemType
impl UnsafeUnpin for GraphicsCaptureItemType
impl UnwindSafe for GraphicsCaptureItemType
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
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>
Converts
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>
Converts
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