Struct windows::Win32::NetworkManagement::WindowsFirewall::INetFwOpenPorts
pub struct INetFwOpenPorts(/* private fields */);
Implementations§
§impl INetFwOpenPorts
impl INetFwOpenPorts
pub unsafe fn Count(&self) -> Result<i32>
pub unsafe fn Add<P0>(&self, port: P0) -> Result<()>where
P0: IntoParam<INetFwOpenPort>,
pub unsafe fn Remove( &self, portnumber: i32, ipprotocol: NET_FW_IP_PROTOCOL ) -> Result<()>
pub unsafe fn Item( &self, portnumber: i32, ipprotocol: NET_FW_IP_PROTOCOL ) -> Result<INetFwOpenPort>
pub unsafe fn _NewEnum(&self) -> Result<IUnknown>
Trait Implementations§
§impl Clone for INetFwOpenPorts
impl Clone for INetFwOpenPorts
§fn clone(&self) -> INetFwOpenPorts
fn clone(&self) -> INetFwOpenPorts
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 INetFwOpenPorts
impl Debug for INetFwOpenPorts
§impl From<&INetFwOpenPorts> for &IDispatch
impl From<&INetFwOpenPorts> for &IDispatch
§fn from(value: &INetFwOpenPorts) -> Self
fn from(value: &INetFwOpenPorts) -> Self
Converts to this type from the input type.
§impl From<&INetFwOpenPorts> for &IUnknown
impl From<&INetFwOpenPorts> for &IUnknown
§fn from(value: &INetFwOpenPorts) -> Self
fn from(value: &INetFwOpenPorts) -> Self
Converts to this type from the input type.
§impl From<INetFwOpenPorts> for IDispatch
impl From<INetFwOpenPorts> for IDispatch
§fn from(value: INetFwOpenPorts) -> Self
fn from(value: INetFwOpenPorts) -> Self
Converts to this type from the input type.
§impl From<INetFwOpenPorts> for IUnknown
impl From<INetFwOpenPorts> for IUnknown
§fn from(value: INetFwOpenPorts) -> Self
fn from(value: INetFwOpenPorts) -> Self
Converts to this type from the input type.
§impl Interface for INetFwOpenPorts
impl Interface for INetFwOpenPorts
§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 INetFwOpenPorts
impl PartialEq for INetFwOpenPorts
§fn eq(&self, other: &INetFwOpenPorts) -> bool
fn eq(&self, other: &INetFwOpenPorts) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for INetFwOpenPorts
impl StructuralPartialEq for INetFwOpenPorts
Auto Trait Implementations§
impl RefUnwindSafe for INetFwOpenPorts
impl !Send for INetFwOpenPorts
impl !Sync for INetFwOpenPorts
impl Unpin for INetFwOpenPorts
impl UnwindSafe for INetFwOpenPorts
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