Struct VpnChannel
pub struct VpnChannel(/* private fields */);
Implementations§
§impl VpnChannel
impl VpnChannel
pub fn AssociateTransport<P0, P1>(
&self,
mainoutertunneltransport: P0,
optionaloutertunneltransport: P1,
) -> Result<()>where
P0: Param<IInspectable>,
P1: Param<IInspectable>,
pub fn Start<P0, P1, P2, P3, P4, P8, P9>(
&self,
assignedclientipv4list: P0,
assignedclientipv6list: P1,
vpninterfaceid: P2,
routescope: P3,
namespacescope: P4,
mtusize: u32,
maxframesize: u32,
optimizeforlowcostnetwork: bool,
mainoutertunneltransport: P8,
optionaloutertunneltransport: P9,
) -> Result<()>where
P0: Param<IVectorView<HostName>>,
P1: Param<IVectorView<HostName>>,
P2: Param<VpnInterfaceId>,
P3: Param<VpnRouteAssignment>,
P4: Param<VpnNamespaceAssignment>,
P8: Param<IInspectable>,
P9: Param<IInspectable>,
pub fn Stop(&self) -> Result<()>
pub fn RequestCredentials<P3>(
&self,
credtype: VpnCredentialType,
isretry: bool,
issinglesignoncredential: bool,
certificate: P3,
) -> Result<VpnPickedCredential>where
P3: Param<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<i64>
pub fn RemoveActivityChange(&self, token: i64) -> Result<()>
pub fn SetPlugInContext<P0>(&self, value: P0) -> Result<()>where
P0: Param<IInspectable>,
pub fn PlugInContext(&self) -> Result<IInspectable>
pub fn SystemHealth(&self) -> Result<VpnSystemHealth>
pub fn RequestCustomPrompt<P0>(&self, customprompt: P0) -> Result<()>where
P0: Param<IVectorView<IVpnCustomPrompt>>,
pub fn SetErrorMessage(&self, message: &HSTRING) -> Result<()>
pub fn SetAllowedSslTlsVersions<P0>(
&self,
tunneltransport: P0,
usetls12: bool,
) -> Result<()>where
P0: Param<IInspectable>,
pub fn StartWithMainTransport<P0, P1, P2, P3, P4, P8>(
&self,
assignedclientipv4list: P0,
assignedclientipv6list: P1,
vpninterfaceid: P2,
assignedroutes: P3,
assigneddomainname: P4,
mtusize: u32,
maxframesize: u32,
reserved: bool,
mainoutertunneltransport: P8,
) -> Result<()>where
P0: Param<IVectorView<HostName>>,
P1: Param<IVectorView<HostName>>,
P2: Param<VpnInterfaceId>,
P3: Param<VpnRouteAssignment>,
P4: Param<VpnDomainNameAssignment>,
P8: Param<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: Param<IVectorView<HostName>>,
P1: Param<IVectorView<HostName>>,
P2: Param<VpnInterfaceId>,
P3: Param<VpnRouteAssignment>,
P4: Param<VpnDomainNameAssignment>,
pub fn ActivityStateChange<P0>(&self, handler: P0) -> Result<i64>
pub fn RemoveActivityStateChange(&self, token: i64) -> Result<()>
pub fn GetVpnSendPacketBuffer(&self) -> Result<VpnPacketBuffer>
pub fn GetVpnReceivePacketBuffer(&self) -> Result<VpnPacketBuffer>
pub fn RequestCustomPromptAsync<P0>(
&self,
custompromptelement: P0,
) -> Result<IAsyncAction>where
P0: Param<IVectorView<IVpnCustomPromptElement>>,
pub fn RequestCredentialsWithCertificateAsync<P2>(
&self,
credtype: VpnCredentialType,
credoptions: u32,
certificate: P2,
) -> Result<IAsyncOperation<VpnCredential>>where
P2: Param<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, P8, P9, P10>(
&self,
assignedclientipv4list: P0,
assignedclientipv6list: P1,
vpninterfaceid: P2,
assignedroutes: P3,
assignednamespace: P4,
mtusize: u32,
maxframesize: u32,
reserved: bool,
mainoutertunneltransport: P8,
optionaloutertunneltransport: P9,
assignedtrafficfilters: P10,
) -> Result<()>where
P0: Param<IVectorView<HostName>>,
P1: Param<IVectorView<HostName>>,
P2: Param<VpnInterfaceId>,
P3: Param<VpnRouteAssignment>,
P4: Param<VpnDomainNameAssignment>,
P8: Param<IInspectable>,
P9: Param<IInspectable>,
P10: Param<VpnTrafficFilterAssignment>,
pub fn AddAndAssociateTransport<P0, P1>(
&self,
transport: P0,
context: P1,
) -> Result<()>where
P0: Param<IInspectable>,
P1: Param<IInspectable>,
pub fn StartWithMultipleTransports<P0, P1, P2, P3, P4, P8, P9>(
&self,
assignedclientipv4addresses: P0,
assignedclientipv6addresses: P1,
vpninterfaceid: P2,
assignedroutes: P3,
assignednamespace: P4,
mtusize: u32,
maxframesize: u32,
reserved: bool,
transports: P8,
assignedtrafficfilters: P9,
) -> Result<()>where
P0: Param<IIterable<HostName>>,
P1: Param<IIterable<HostName>>,
P2: Param<VpnInterfaceId>,
P3: Param<VpnRouteAssignment>,
P4: Param<VpnDomainNameAssignment>,
P8: Param<IIterable<IInspectable>>,
P9: Param<VpnTrafficFilterAssignment>,
pub fn ReplaceAndAssociateTransport<P0, P1>(
&self,
transport: P0,
context: P1,
) -> Result<()>where
P0: Param<IInspectable>,
P1: Param<IInspectable>,
pub fn StartReconnectingTransport<P0, P1>(
&self,
transport: P0,
context: P1,
) -> Result<()>where
P0: Param<IInspectable>,
P1: Param<IInspectable>,
pub fn GetSlotTypeForTransportContext<P0>(
&self,
context: P0,
) -> Result<ControlChannelTriggerStatus>where
P0: Param<IInspectable>,
pub fn CurrentRequestTransportContext(&self) -> Result<IInspectable>
pub fn AppendVpnReceivePacketBuffer<P0>(
&self,
decapsulatedpacketbuffer: P0,
) -> Result<()>where
P0: Param<VpnPacketBuffer>,
pub fn AppendVpnSendPacketBuffer<P0>(
&self,
encapsulatedpacketbuffer: P0,
) -> Result<()>where
P0: Param<VpnPacketBuffer>,
pub fn FlushVpnReceivePacketBuffers(&self) -> Result<()>
pub fn FlushVpnSendPacketBuffers(&self) -> Result<()>
pub fn ActivateForeground<P1>(
&self,
packagerelativeappid: &HSTRING,
sharedcontext: P1,
) -> Result<ValueSet>where
P1: Param<ValueSet>,
pub fn ProcessEventAsync<P0, P1>(thirdpartyplugin: P0, event: P1) -> Result<()>where
P0: Param<IInspectable>,
P1: Param<IInspectable>,
Trait Implementations§
§impl CanInto<IInspectable> for VpnChannel
impl CanInto<IInspectable> for VpnChannel
§impl CanInto<IUnknown> for VpnChannel
impl CanInto<IUnknown> for VpnChannel
§impl CanInto<IVpnChannelStatics> for VpnChannel
impl CanInto<IVpnChannelStatics> for VpnChannel
§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
§const IID: GUID = <IVpnChannel as windows_core::Interface>::IID
const IID: GUID = <IVpnChannel 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.
§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 VpnChannel
impl PartialEq for VpnChannel
impl Eq for VpnChannel
impl Send for VpnChannel
impl StructuralPartialEq for VpnChannel
impl Sync for VpnChannel
Auto Trait Implementations§
impl Freeze for VpnChannel
impl RefUnwindSafe for VpnChannel
impl Unpin for VpnChannel
impl UnwindSafe for VpnChannel
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