Struct windows::Networking::Vpn::VpnChannel
pub struct VpnChannel(/* private fields */);
Implementations§
§impl VpnChannel
impl VpnChannel
pub fn AssociateTransport<P0, P1>(
&self,
mainoutertunneltransport: P0,
optionaloutertunneltransport: P1
) -> Result<()>where
P0: IntoParam<IInspectable>,
P1: IntoParam<IInspectable>,
pub fn Start<P0, P1, P2, P3, P4, P5, P6>(
&self,
assignedclientipv4list: P0,
assignedclientipv6list: P1,
vpninterfaceid: P2,
routescope: P3,
namespacescope: P4,
mtusize: u32,
maxframesize: u32,
optimizeforlowcostnetwork: bool,
mainoutertunneltransport: P5,
optionaloutertunneltransport: P6
) -> Result<()>where
P0: IntoParam<IVectorView<HostName>>,
P1: IntoParam<IVectorView<HostName>>,
P2: IntoParam<VpnInterfaceId>,
P3: IntoParam<VpnRouteAssignment>,
P4: IntoParam<VpnNamespaceAssignment>,
P5: IntoParam<IInspectable>,
P6: IntoParam<IInspectable>,
pub fn Stop(&self) -> Result<()>
pub fn RequestCredentials<P0>(
&self,
credtype: VpnCredentialType,
isretry: bool,
issinglesignoncredential: bool,
certificate: P0
) -> Result<VpnPickedCredential>where
P0: IntoParam<Certificate>,
pub fn RequestVpnPacketBuffer( &self, type: VpnDataPathType, vpnpacketbuffer: &mut Option<VpnPacketBuffer> ) -> Result<()>
pub fn LogDiagnosticMessage(&self, message: &HSTRING) -> Result<()>
pub fn Id(&self) -> Result<u32>
pub fn Configuration(&self) -> Result<VpnChannelConfiguration>
pub fn ActivityChange<P0>(&self, handler: P0) -> Result<EventRegistrationToken>
pub fn RemoveActivityChange(&self, token: EventRegistrationToken) -> Result<()>
pub fn SetPlugInContext<P0>(&self, value: P0) -> Result<()>where
P0: IntoParam<IInspectable>,
pub fn PlugInContext(&self) -> Result<IInspectable>
pub fn SystemHealth(&self) -> Result<VpnSystemHealth>
pub fn RequestCustomPrompt<P0>(&self, customprompt: P0) -> Result<()>where
P0: IntoParam<IVectorView<IVpnCustomPrompt>>,
pub fn SetErrorMessage(&self, message: &HSTRING) -> Result<()>
pub fn SetAllowedSslTlsVersions<P0>(
&self,
tunneltransport: P0,
usetls12: bool
) -> Result<()>where
P0: IntoParam<IInspectable>,
pub fn StartWithMainTransport<P0, P1, P2, P3, P4, P5>(
&self,
assignedclientipv4list: P0,
assignedclientipv6list: P1,
vpninterfaceid: P2,
assignedroutes: P3,
assigneddomainname: P4,
mtusize: u32,
maxframesize: u32,
reserved: bool,
mainoutertunneltransport: P5
) -> Result<()>where
P0: IntoParam<IVectorView<HostName>>,
P1: IntoParam<IVectorView<HostName>>,
P2: IntoParam<VpnInterfaceId>,
P3: IntoParam<VpnRouteAssignment>,
P4: IntoParam<VpnDomainNameAssignment>,
P5: IntoParam<IInspectable>,
pub fn StartExistingTransports<P0, P1, P2, P3, P4>(
&self,
assignedclientipv4list: P0,
assignedclientipv6list: P1,
vpninterfaceid: P2,
assignedroutes: P3,
assigneddomainname: P4,
mtusize: u32,
maxframesize: u32,
reserved: bool
) -> Result<()>where
P0: IntoParam<IVectorView<HostName>>,
P1: IntoParam<IVectorView<HostName>>,
P2: IntoParam<VpnInterfaceId>,
P3: IntoParam<VpnRouteAssignment>,
P4: IntoParam<VpnDomainNameAssignment>,
pub fn ActivityStateChange<P0>( &self, handler: P0 ) -> Result<EventRegistrationToken>
pub fn RemoveActivityStateChange( &self, token: EventRegistrationToken ) -> Result<()>
pub fn GetVpnSendPacketBuffer(&self) -> Result<VpnPacketBuffer>
pub fn GetVpnReceivePacketBuffer(&self) -> Result<VpnPacketBuffer>
pub fn RequestCustomPromptAsync<P0>(
&self,
custompromptelement: P0
) -> Result<IAsyncAction>where
P0: IntoParam<IVectorView<IVpnCustomPromptElement>>,
pub fn RequestCredentialsWithCertificateAsync<P0>(
&self,
credtype: VpnCredentialType,
credoptions: u32,
certificate: P0
) -> Result<IAsyncOperation<VpnCredential>>where
P0: IntoParam<Certificate>,
pub fn RequestCredentialsWithOptionsAsync( &self, credtype: VpnCredentialType, credoptions: u32 ) -> Result<IAsyncOperation<VpnCredential>>
pub fn RequestCredentialsSimpleAsync( &self, credtype: VpnCredentialType ) -> Result<IAsyncOperation<VpnCredential>>
pub fn TerminateConnection(&self, message: &HSTRING) -> Result<()>
pub fn StartWithTrafficFilter<P0, P1, P2, P3, P4, P5, P6, P7>(
&self,
assignedclientipv4list: P0,
assignedclientipv6list: P1,
vpninterfaceid: P2,
assignedroutes: P3,
assignednamespace: P4,
mtusize: u32,
maxframesize: u32,
reserved: bool,
mainoutertunneltransport: P5,
optionaloutertunneltransport: P6,
assignedtrafficfilters: P7
) -> Result<()>where
P0: IntoParam<IVectorView<HostName>>,
P1: IntoParam<IVectorView<HostName>>,
P2: IntoParam<VpnInterfaceId>,
P3: IntoParam<VpnRouteAssignment>,
P4: IntoParam<VpnDomainNameAssignment>,
P5: IntoParam<IInspectable>,
P6: IntoParam<IInspectable>,
P7: IntoParam<VpnTrafficFilterAssignment>,
pub fn AddAndAssociateTransport<P0, P1>(
&self,
transport: P0,
context: P1
) -> Result<()>where
P0: IntoParam<IInspectable>,
P1: IntoParam<IInspectable>,
pub fn StartWithMultipleTransports<P0, P1, P2, P3, P4, P5, P6>(
&self,
assignedclientipv4addresses: P0,
assignedclientipv6addresses: P1,
vpninterfaceid: P2,
assignedroutes: P3,
assignednamespace: P4,
mtusize: u32,
maxframesize: u32,
reserved: bool,
transports: P5,
assignedtrafficfilters: P6
) -> Result<()>where
P0: IntoParam<IIterable<HostName>>,
P1: IntoParam<IIterable<HostName>>,
P2: IntoParam<VpnInterfaceId>,
P3: IntoParam<VpnRouteAssignment>,
P4: IntoParam<VpnDomainNameAssignment>,
P5: IntoParam<IIterable<IInspectable>>,
P6: IntoParam<VpnTrafficFilterAssignment>,
pub fn ReplaceAndAssociateTransport<P0, P1>(
&self,
transport: P0,
context: P1
) -> Result<()>where
P0: IntoParam<IInspectable>,
P1: IntoParam<IInspectable>,
pub fn StartReconnectingTransport<P0, P1>(
&self,
transport: P0,
context: P1
) -> Result<()>where
P0: IntoParam<IInspectable>,
P1: IntoParam<IInspectable>,
pub fn GetSlotTypeForTransportContext<P0>(
&self,
context: P0
) -> Result<ControlChannelTriggerStatus>where
P0: IntoParam<IInspectable>,
pub fn CurrentRequestTransportContext(&self) -> Result<IInspectable>
pub fn AppendVpnReceivePacketBuffer<P0>(
&self,
decapsulatedpacketbuffer: P0
) -> Result<()>where
P0: IntoParam<VpnPacketBuffer>,
pub fn AppendVpnSendPacketBuffer<P0>(
&self,
encapsulatedpacketbuffer: P0
) -> Result<()>where
P0: IntoParam<VpnPacketBuffer>,
pub fn FlushVpnReceivePacketBuffers(&self) -> Result<()>
pub fn FlushVpnSendPacketBuffers(&self) -> Result<()>
pub fn ActivateForeground<P0>(
&self,
packagerelativeappid: &HSTRING,
sharedcontext: P0
) -> Result<ValueSet>where
P0: IntoParam<ValueSet>,
pub fn ProcessEventAsync<P0, P1>(thirdpartyplugin: P0, event: P1) -> Result<()>where
P0: IntoParam<IInspectable>,
P1: IntoParam<IInspectable>,
Trait Implementations§
§impl Clone for VpnChannel
impl Clone for VpnChannel
§fn clone(&self) -> VpnChannel
fn clone(&self) -> VpnChannel
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 VpnChannel
impl Debug for VpnChannel
§impl From<&VpnChannel> for &IInspectable
impl From<&VpnChannel> for &IInspectable
§fn from(value: &VpnChannel) -> Self
fn from(value: &VpnChannel) -> Self
Converts to this type from the input type.
§impl From<&VpnChannel> for &IUnknown
impl From<&VpnChannel> for &IUnknown
§fn from(value: &VpnChannel) -> Self
fn from(value: &VpnChannel) -> Self
Converts to this type from the input type.
§impl From<VpnChannel> for IInspectable
impl From<VpnChannel> for IInspectable
§fn from(value: VpnChannel) -> Self
fn from(value: VpnChannel) -> Self
Converts to this type from the input type.
§impl From<VpnChannel> for IUnknown
impl From<VpnChannel> for IUnknown
§fn from(value: VpnChannel) -> Self
fn from(value: VpnChannel) -> Self
Converts to this type from the input type.
§impl Interface for VpnChannel
impl Interface for VpnChannel
§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 VpnChannel
impl PartialEq for VpnChannel
§fn eq(&self, other: &VpnChannel) -> bool
fn eq(&self, other: &VpnChannel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for VpnChannel
impl Send for VpnChannel
impl StructuralPartialEq for VpnChannel
impl Sync for VpnChannel
Auto Trait Implementations§
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