Struct windows::Win32::Devices::WebServicesOnDevices::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: IntoParam<PCWSTR>,
P1: IntoParam<IWSDXMLContext>,
pub unsafe fn Start<P0>(
&self,
ullinstanceid: u64,
pscopelist: *const WSD_URI_LIST,
pnotificationsink: P0
) -> Result<()>where
P0: IntoParam<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<()>
pub unsafe fn RetireService<P0>(&self, pszserviceid: P0) -> Result<()>where
P0: IntoParam<PCWSTR>,
pub unsafe fn AddDynamicService<P0, P1, P2>( &self, pszserviceid: P0, pszendpointaddress: P1, pporttype: Option<*const WSD_PORT_TYPE>, pportname: Option<*const WSDXML_NAME>, pany: Option<*const WSDXML_ELEMENT>, pservice: P2 ) -> Result<()>
pub unsafe fn RemoveDynamicService<P0>(&self, pszserviceid: P0) -> Result<()>where
P0: IntoParam<PCWSTR>,
pub unsafe fn SetServiceDiscoverable<P0, P1>( &self, pszserviceid: P0, fdiscoverable: P1 ) -> Result<()>
pub unsafe fn SignalEvent<P0>(
&self,
pszserviceid: P0,
pbody: Option<*const c_void>,
poperation: *const WSD_OPERATION
) -> Result<()>where
P0: IntoParam<PCWSTR>,
Trait Implementations§
§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.
§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 IWSDDeviceHost
impl PartialEq for IWSDDeviceHost
§fn eq(&self, other: &IWSDDeviceHost) -> bool
fn eq(&self, other: &IWSDDeviceHost) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for IWSDDeviceHost
impl StructuralPartialEq for IWSDDeviceHost
Auto Trait Implementations§
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