windows::Win32::NetworkManagement::WindowsFirewall

Trait IDynamicPortMappingCollection_Impl

pub trait IDynamicPortMappingCollection_Impl: IDispatch_Impl {
    // Required methods
    fn _NewEnum(&self) -> Result<IUnknown>;
    fn get_Item(
        &self,
        bstrremotehost: &BSTR,
        lexternalport: i32,
        bstrprotocol: &BSTR,
    ) -> Result<IDynamicPortMapping>;
    fn Count(&self) -> Result<i32>;
    fn Remove(
        &self,
        bstrremotehost: &BSTR,
        lexternalport: i32,
        bstrprotocol: &BSTR,
    ) -> Result<()>;
    fn Add(
        &self,
        bstrremotehost: &BSTR,
        lexternalport: i32,
        bstrprotocol: &BSTR,
        linternalport: i32,
        bstrinternalclient: &BSTR,
        benabled: VARIANT_BOOL,
        bstrdescription: &BSTR,
        lleaseduration: i32,
    ) -> Result<IDynamicPortMapping>;
}

Required Methods§

fn _NewEnum(&self) -> Result<IUnknown>

fn get_Item( &self, bstrremotehost: &BSTR, lexternalport: i32, bstrprotocol: &BSTR, ) -> Result<IDynamicPortMapping>

fn Count(&self) -> Result<i32>

fn Remove( &self, bstrremotehost: &BSTR, lexternalport: i32, bstrprotocol: &BSTR, ) -> Result<()>

fn Add( &self, bstrremotehost: &BSTR, lexternalport: i32, bstrprotocol: &BSTR, linternalport: i32, bstrinternalclient: &BSTR, benabled: VARIANT_BOOL, bstrdescription: &BSTR, lleaseduration: i32, ) -> Result<IDynamicPortMapping>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§