pub struct XboxLiveEndpointPairTemplate(/* private fields */);
Implementations§
§impl XboxLiveEndpointPairTemplate
impl XboxLiveEndpointPairTemplate
pub fn InboundEndpointPairCreated<P0>(
&self,
handler: P0,
) -> Result<EventRegistrationToken>where
P0: Param<TypedEventHandler<XboxLiveEndpointPairTemplate, XboxLiveInboundEndpointPairCreatedEventArgs>>,
pub fn RemoveInboundEndpointPairCreated( &self, token: EventRegistrationToken, ) -> Result<()>
pub fn CreateEndpointPairDefaultAsync<P0>(
&self,
deviceaddress: P0,
) -> Result<IAsyncOperation<XboxLiveEndpointPairCreationResult>>where
P0: Param<XboxLiveDeviceAddress>,
pub fn CreateEndpointPairWithBehaviorsAsync<P0>(
&self,
deviceaddress: P0,
behaviors: XboxLiveEndpointPairCreationBehaviors,
) -> Result<IAsyncOperation<XboxLiveEndpointPairCreationResult>>where
P0: Param<XboxLiveDeviceAddress>,
pub fn CreateEndpointPairForPortsDefaultAsync<P0>(
&self,
deviceaddress: P0,
initiatorport: &HSTRING,
acceptorport: &HSTRING,
) -> Result<IAsyncOperation<XboxLiveEndpointPairCreationResult>>where
P0: Param<XboxLiveDeviceAddress>,
pub fn CreateEndpointPairForPortsWithBehaviorsAsync<P0>(
&self,
deviceaddress: P0,
initiatorport: &HSTRING,
acceptorport: &HSTRING,
behaviors: XboxLiveEndpointPairCreationBehaviors,
) -> Result<IAsyncOperation<XboxLiveEndpointPairCreationResult>>where
P0: Param<XboxLiveDeviceAddress>,
pub fn Name(&self) -> Result<HSTRING>
pub fn SocketKind(&self) -> Result<XboxLiveSocketKind>
pub fn InitiatorBoundPortRangeLower(&self) -> Result<u16>
pub fn InitiatorBoundPortRangeUpper(&self) -> Result<u16>
pub fn AcceptorBoundPortRangeLower(&self) -> Result<u16>
pub fn AcceptorBoundPortRangeUpper(&self) -> Result<u16>
pub fn EndpointPairs(&self) -> Result<IVectorView<XboxLiveEndpointPair>>
pub fn GetTemplateByName(name: &HSTRING) -> Result<XboxLiveEndpointPairTemplate>
pub fn Templates() -> Result<IVectorView<XboxLiveEndpointPairTemplate>>
Trait Implementations§
§impl CanInto<IInspectable> for XboxLiveEndpointPairTemplate
impl CanInto<IInspectable> for XboxLiveEndpointPairTemplate
§impl CanInto<IUnknown> for XboxLiveEndpointPairTemplate
impl CanInto<IUnknown> for XboxLiveEndpointPairTemplate
§impl Clone for XboxLiveEndpointPairTemplate
impl Clone for XboxLiveEndpointPairTemplate
§fn clone(&self) -> XboxLiveEndpointPairTemplate
fn clone(&self) -> XboxLiveEndpointPairTemplate
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 XboxLiveEndpointPairTemplate
impl Debug for XboxLiveEndpointPairTemplate
§impl From<&XboxLiveEndpointPairTemplate> for &IInspectable
impl From<&XboxLiveEndpointPairTemplate> for &IInspectable
§fn from(value: &XboxLiveEndpointPairTemplate) -> Self
fn from(value: &XboxLiveEndpointPairTemplate) -> Self
Converts to this type from the input type.
§impl From<&XboxLiveEndpointPairTemplate> for &IUnknown
impl From<&XboxLiveEndpointPairTemplate> for &IUnknown
§fn from(value: &XboxLiveEndpointPairTemplate) -> Self
fn from(value: &XboxLiveEndpointPairTemplate) -> Self
Converts to this type from the input type.
§impl From<XboxLiveEndpointPairTemplate> for IInspectable
impl From<XboxLiveEndpointPairTemplate> for IInspectable
§fn from(value: XboxLiveEndpointPairTemplate) -> Self
fn from(value: XboxLiveEndpointPairTemplate) -> Self
Converts to this type from the input type.
§impl From<XboxLiveEndpointPairTemplate> for IUnknown
impl From<XboxLiveEndpointPairTemplate> for IUnknown
§fn from(value: XboxLiveEndpointPairTemplate) -> Self
fn from(value: XboxLiveEndpointPairTemplate) -> Self
Converts to this type from the input type.
§impl Interface for XboxLiveEndpointPairTemplate
impl Interface for XboxLiveEndpointPairTemplate
§const IID: GUID = <IXboxLiveEndpointPairTemplate as windows_core::Interface>::IID
const IID: GUID = <IXboxLiveEndpointPairTemplate as windows_core::Interface>::IID
The
GUID
associated with the interface.§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§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 XboxLiveEndpointPairTemplate
impl PartialEq for XboxLiveEndpointPairTemplate
§fn eq(&self, other: &XboxLiveEndpointPairTemplate) -> bool
fn eq(&self, other: &XboxLiveEndpointPairTemplate) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for XboxLiveEndpointPairTemplate
impl Send for XboxLiveEndpointPairTemplate
impl StructuralPartialEq for XboxLiveEndpointPairTemplate
impl Sync for XboxLiveEndpointPairTemplate
Auto Trait Implementations§
impl Freeze for XboxLiveEndpointPairTemplate
impl RefUnwindSafe for XboxLiveEndpointPairTemplate
impl Unpin for XboxLiveEndpointPairTemplate
impl UnwindSafe for XboxLiveEndpointPairTemplate
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)