pub struct GraphicsCaptureItem(/* private fields */);展开描述
为 trait 约束导出
实现§
源代码§impl GraphicsCaptureItem
impl GraphicsCaptureItem
pub fn DisplayName(&self) -> Result<HSTRING, Error>
pub fn Size(&self) -> Result<SizeInt32, Error>
pub fn Closed<P0>(&self, handler: P0) -> Result<i64, Error>
pub fn RemoveClosed(&self, token: i64) -> Result<(), Error>
pub fn TryCreateFromDisplayId( displayid: DisplayId, ) -> Result<GraphicsCaptureItem, Error>
trait 实现§
源代码§impl Clone for GraphicsCaptureItem
impl Clone for GraphicsCaptureItem
源代码§fn clone(&self) -> GraphicsCaptureItem
fn clone(&self) -> GraphicsCaptureItem
返回该值的一个副本。 阅读更多
1.0.0 · 源代码§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. 阅读更多源代码§impl Debug for GraphicsCaptureItem
impl Debug for GraphicsCaptureItem
源代码§impl Interface for GraphicsCaptureItem
impl Interface for GraphicsCaptureItem
源代码§fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>
fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>
This casts the given COM interface to [
&dyn Any]. 阅读更多源代码§fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>
fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>
This casts the given COM interface to [
&dyn Any]. It returns a reference to the “outer”
object, e.g. &MyApp_Impl, not the inner &MyApp object. 阅读更多源代码§fn cast_object<T>(&self) -> Result<ComObject<T>, Error>
fn cast_object<T>(&self) -> Result<ComObject<T>, Error>
This casts the given COM interface to [
&dyn Any]. It returns a reference to the “outer”
object, e.g. MyApp_Impl, not the inner MyApp object. 阅读更多源代码§unsafe fn query(&self, iid: *const GUID, interface: *mut *mut c_void) -> HRESULT
unsafe fn query(&self, iid: *const GUID, interface: *mut *mut c_void) -> HRESULT
在此接口上调用
QueryInterface 阅读更多源代码§fn to_ref(&self) -> InterfaceRef<'_, Self>
fn to_ref(&self) -> InterfaceRef<'_, Self>
为此引用创建一个
InterfaceRef。InterfaceRef 在静态层面追踪生命周期,
无需动态引用计数调整(AddRef/Release)。源代码§impl PartialEq for GraphicsCaptureItem
impl PartialEq for GraphicsCaptureItem
impl Eq for GraphicsCaptureItem
impl Send for GraphicsCaptureItem
impl StructuralPartialEq for GraphicsCaptureItem
impl Sync for GraphicsCaptureItem
自动 trait 实现§
impl Freeze for GraphicsCaptureItem
impl RefUnwindSafe for GraphicsCaptureItem
impl Unpin for GraphicsCaptureItem
impl UnsafeUnpin for GraphicsCaptureItem
impl UnwindSafe for GraphicsCaptureItem
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 变体。 阅读更多