pub struct IMbnDeviceServicesContext(/* private fields */);
Implementations§
§impl IMbnDeviceServicesContext
impl IMbnDeviceServicesContext
pub unsafe fn EnumerateDeviceServices(&self) -> Result<*mut SAFEARRAY>
pub unsafe fn GetDeviceService<P0>(
&self,
deviceserviceid: P0
) -> Result<IMbnDeviceService>where
P0: Param<BSTR>,
pub unsafe fn MaxCommandSize(&self) -> Result<u32>
pub unsafe fn MaxDataSize(&self) -> Result<u32>
Trait Implementations§
§impl Clone for IMbnDeviceServicesContext
impl Clone for IMbnDeviceServicesContext
§fn clone(&self) -> IMbnDeviceServicesContext
fn clone(&self) -> IMbnDeviceServicesContext
Returns a copy of the value. Read more
1.0.0 · 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 IMbnDeviceServicesContext
impl Debug for IMbnDeviceServicesContext
§impl Deref for IMbnDeviceServicesContext
impl Deref for IMbnDeviceServicesContext
§impl From<&IMbnDeviceServicesContext> for &IUnknown
impl From<&IMbnDeviceServicesContext> for &IUnknown
§fn from(value: &IMbnDeviceServicesContext) -> Self
fn from(value: &IMbnDeviceServicesContext) -> Self
Converts to this type from the input type.
§impl From<IMbnDeviceServicesContext> for IUnknown
impl From<IMbnDeviceServicesContext> for IUnknown
§fn from(value: IMbnDeviceServicesContext) -> Self
fn from(value: IMbnDeviceServicesContext) -> Self
Converts to this type from the input type.
§impl Interface for IMbnDeviceServicesContext
impl Interface for IMbnDeviceServicesContext
§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the
Interface
implementation.§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Attempts to cast the current interface to another interface using
QueryInterface
. Read more§impl PartialEq for IMbnDeviceServicesContext
impl PartialEq for IMbnDeviceServicesContext
§fn eq(&self, other: &IMbnDeviceServicesContext) -> bool
fn eq(&self, other: &IMbnDeviceServicesContext) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for IMbnDeviceServicesContext
impl StructuralPartialEq for IMbnDeviceServicesContext
Auto Trait Implementations§
impl Freeze for IMbnDeviceServicesContext
impl RefUnwindSafe for IMbnDeviceServicesContext
impl !Send for IMbnDeviceServicesContext
impl !Sync for IMbnDeviceServicesContext
impl Unpin for IMbnDeviceServicesContext
impl UnwindSafe for IMbnDeviceServicesContext
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