Struct IInspectable
#[repr(transparent)]pub struct IInspectable(pub IUnknown);Expand description
The base interface for WinRT classes, interfaces, and boxed values.
See IInspectable.
Tuple Fields§
§0: IUnknownImplementations§
§impl IInspectable
impl IInspectable
pub fn GetRuntimeClassName(&self) -> Result<HSTRING>
pub fn GetRuntimeClassName(&self) -> Result<HSTRING>
Returns the canonical type name for the underlying object.
pub fn GetTrustLevel(&self) -> Result<i32>
pub fn GetTrustLevel(&self) -> Result<i32>
Gets the trust level of the current object.
Trait Implementations§
§impl Clone for IInspectable
impl Clone for IInspectable
§fn clone(&self) -> IInspectable
fn clone(&self) -> IInspectable
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for IInspectable
impl Debug for IInspectable
impl Eq for IInspectable
§impl From<&IInspectable> for &IUnknown
impl From<&IInspectable> for &IUnknown
§fn from(value: &IInspectable) -> Self
fn from(value: &IInspectable) -> Self
Converts to this type from the input type.
§impl From<IInspectable> for IUnknown
impl From<IInspectable> for IUnknown
§fn from(value: IInspectable) -> Self
fn from(value: IInspectable) -> Self
Converts to this type from the input type.
§impl Interface for IInspectable
impl Interface for IInspectable
§unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>
unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>
Borrows a COM interface pointer. Read more
§fn cast_to_any<T>(&self) -> Result<&dyn Any>
fn cast_to_any<T>(&self) -> Result<&dyn Any>
Returns the generated outer Rust implementation as [
&dyn Any]. Read more§fn cast_object_ref<T>(&self) -> Result<&T::Outer>
fn cast_object_ref<T>(&self) -> Result<&T::Outer>
Returns a borrowed reference to the generated outer Rust implementation. Read more
§fn cast_object<T>(&self) -> Result<ComObject<T>>
fn cast_object<T>(&self) -> Result<ComObject<T>>
Returns an owned reference to the generated outer Rust implementation. Read more
§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
Calls
QueryInterface. Read more§fn to_ref(&self) -> InterfaceRef<'_, Self>
fn to_ref(&self) -> InterfaceRef<'_, Self>
Borrows this interface without changing its reference count.
§impl PartialEq for IInspectable
impl PartialEq for IInspectable
impl StructuralPartialEq for IInspectable
Auto Trait Implementations§
impl !Send for IInspectable
impl !Sync for IInspectable
impl Freeze for IInspectable
impl RefUnwindSafe for IInspectable
impl Unpin for IInspectable
impl UnsafeUnpin for IInspectable
impl UnwindSafe for IInspectable
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