pub enum GraphicsCaptureItemType {
Monitor((GraphicsCaptureItem, Monitor)),
Window((GraphicsCaptureItem, Window)),
Unknown((GraphicsCaptureItem, HwndGuard)),
}展开描述
可捕获的项目类型枚举。
将 WinRT GraphicsCaptureItem 与关于来源的其他详细信息封装在一起:
Monitor用于显示显示器,Window用于顶级窗口,crate::graphics_capture_picker::HwndGuard用于未知的基于 HWND 的来源。
变体§
Monitor((GraphicsCaptureItem, Monitor))
一个显示显示器。包含 GraphicsCaptureItem 及其 Monitor 详细信息。
Window((GraphicsCaptureItem, Window))
一个应用程序窗口。包含 GraphicsCaptureItem 及其 Window 详细信息。
Unknown((GraphicsCaptureItem, HwndGuard))
未知的捕获项类型(通常从 HWND 创建)。包含
GraphicsCaptureItem 和关联的
crate::graphics_capture_picker::HwndGuard。
trait 实现§
Source§impl TryInto<GraphicsCaptureItemType> for Monitor
impl TryInto<GraphicsCaptureItemType> for Monitor
自动 trait 实现§
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 实现§
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> 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>
当
into_left 为 true 时,将 self 转换为
Left 变体的
Either<Self, Self>;
否则将其转换为
Right 变体的
Either<Self, Self>。
了解更多Source§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
当
into_left(&self) 返回 true 时,将 self 转换为
Left 变体的
Either<Self, Self>;
否则将其转换为
Right 变体的
Either<Self, Self>。
了解更多