pub enum Error {
Unsupported,
CursorConfigUnsupported,
BorderConfigUnsupported,
SecondaryWindowsUnsupported,
MinimumUpdateIntervalUnsupported,
DirtyRegionUnsupported,
AlreadyStarted,
DirectXError(Error),
WindowError(Error),
WindowsError(Error),
}展开描述
配置或运行 Windows Graphics Capture 会话时可能发生的错误。
变体§
Unsupported
此操作系统上不提供 Windows Graphics Capture API。
CursorConfigUnsupported
此平台/OS 版本不支持切换光标捕获。
BorderConfigUnsupported
此平台/OS 版本不支持切换捕获边框。
SecondaryWindowsUnsupported
此平台/OS 版本不支持捕获辅助(从属)窗口。
MinimumUpdateIntervalUnsupported
此平台/OS 版本不支持设置最小帧更新间隔。
DirtyRegionUnsupported
此平台/OS 版本不支持脏区域跟踪。
AlreadyStarted
此会话已启动捕获。
DirectXError(Error)
底层 Direct3D(D3D11)错误。
包裹了 crate::d3d11::Error。
WindowError(Error)
窗口辅助函数错误。
包裹了 crate::window::Error。
WindowsError(Error)
Windows Runtime/Win32 API 调用失败。
包裹了 windows::core::Error。
trait 实现§
impl Eq for Error
impl StructuralPartialEq for Error
自动 trait 实现§
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 实现§
源码§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
源码§impl<T> IntoEither for T
impl<T> IntoEither for T
源码§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>。 了解更多源码§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>。 了解更多