pub enum Error {
FeatureLevelNotSatisfied,
WindowsError(Error),
}展开描述
在创建或使用 Direct3D 设备和纹理时可能发生的错误。
变体§
FeatureLevelNotSatisfied
所创建的设备至少不支持 11.0 功能等级。
WindowsError(Error)
Windows Runtime 或 Win32 API 调用失败。
包装了 windows::core::Error。
trait 实现§
源代码§impl Error for Error
impl Error for Error
源代码§impl<E> From<Error> for GraphicsCaptureApiError<E>
impl<E> From<Error> for GraphicsCaptureApiError<E>
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
源代码§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
从拥有的值可变地借用。 阅读更多
源代码§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 转换为 Either<Self, Self> 的 Left 变体;
否则将 self 转换为 Either<Self, Self> 的 Right 变体。 阅读更多源代码§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 转换为 Either<Self, Self> 的 Left 变体;
否则将 self 转换为 Either<Self, Self> 的 Right 变体。 阅读更多