Struct IWSDDeviceHost
pub struct IWSDDeviceHost(/* private fields */);
Implementations§
§impl IWSDDeviceHost
impl IWSDDeviceHost
pub unsafe fn Init<P0, P1>(
&self,
pszlocalid: P0,
pcontext: P1,
pphostaddresses: Option<&[Option<IWSDAddress>]>,
) -> Result<()>where
P0: Param<PCWSTR>,
P1: Param<IWSDXMLContext>,
pub unsafe fn Start<P2>(
&self,
ullinstanceid: u64,
pscopelist: *const WSD_URI_LIST,
pnotificationsink: P2,
) -> Result<()>where
P2: Param<IWSDDeviceHostNotify>,
pub unsafe fn Stop(&self) -> Result<()>
pub unsafe fn Terminate(&self) -> Result<()>
pub unsafe fn RegisterPortType( &self, pporttype: *const WSD_PORT_TYPE, ) -> Result<()>
pub unsafe fn SetMetadata( &self, pthismodelmetadata: *const WSD_THIS_MODEL_METADATA, pthisdevicemetadata: *const WSD_THIS_DEVICE_METADATA, phostmetadata: Option<*const WSD_HOST_METADATA>, pcustommetadata: Option<*const WSD_METADATA_SECTION_LIST>, ) -> Result<()>
pub unsafe fn RegisterService<P0, P1>(
&self,
pszserviceid: P0,
pservice: P1,
) -> Result<()>where
P0: Param<PCWSTR>,
P1: Param<IUnknown>,
pub unsafe fn RetireService<P0>(&self, pszserviceid: P0) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn AddDynamicService<P0, P1, P5>(
&self,
pszserviceid: P0,
pszendpointaddress: P1,
pporttype: Option<*const WSD_PORT_TYPE>,
pportname: Option<*const WSDXML_NAME>,
pany: Option<*const WSDXML_ELEMENT>,
pservice: P5,
) -> Result<()>where
P0: Param<PCWSTR>,
P1: Param<PCWSTR>,
P5: Param<IUnknown>,
pub unsafe fn RemoveDynamicService<P0>(&self, pszserviceid: P0) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn SetServiceDiscoverable<P0>(
&self,
pszserviceid: P0,
fdiscoverable: bool,
) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn SignalEvent<P0>(
&self,
pszserviceid: P0,
pbody: Option<*const c_void>,
poperation: *const WSD_OPERATION,
) -> Result<()>where
P0: Param<PCWSTR>,
Trait Implementations§
§impl CanInto<IUnknown> for IWSDDeviceHost
impl CanInto<IUnknown> for IWSDDeviceHost
§impl Clone for IWSDDeviceHost
impl Clone for IWSDDeviceHost
§fn clone(&self) -> IWSDDeviceHost
fn clone(&self) -> IWSDDeviceHost
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 IWSDDeviceHost
impl Debug for IWSDDeviceHost
§impl From<&IWSDDeviceHost> for &IUnknown
impl From<&IWSDDeviceHost> for &IUnknown
§fn from(value: &IWSDDeviceHost) -> Self
fn from(value: &IWSDDeviceHost) -> Self
Converts to this type from the input type.
§impl From<IWSDDeviceHost> for IUnknown
impl From<IWSDDeviceHost> for IUnknown
§fn from(value: IWSDDeviceHost) -> Self
fn from(value: IWSDDeviceHost) -> Self
Converts to this type from the input type.
§impl Interface for IWSDDeviceHost
impl Interface for IWSDDeviceHost
§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.
§unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>
unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>
§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§fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. Read more§fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
§fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
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. Read more§fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
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. Read more§fn downgrade(&self) -> Result<Weak<Self>, Error>
fn downgrade(&self) -> Result<Weak<Self>, Error>
Attempts to create a [
Weak
] reference to this object.§impl PartialEq for IWSDDeviceHost
impl PartialEq for IWSDDeviceHost
impl Eq for IWSDDeviceHost
impl StructuralPartialEq for IWSDDeviceHost
Auto Trait Implementations§
impl Freeze for IWSDDeviceHost
impl RefUnwindSafe for IWSDDeviceHost
impl !Send for IWSDDeviceHost
impl !Sync for IWSDDeviceHost
impl Unpin for IWSDDeviceHost
impl UnwindSafe for IWSDDeviceHost
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