windows::Win32::NetworkManagement::WindowsFirewall

Trait INetFwRule_Impl

pub trait INetFwRule_Impl: IDispatch_Impl {
Show 36 methods // Required methods fn Name(&self) -> Result<BSTR>; fn SetName(&self, name: &BSTR) -> Result<()>; fn Description(&self) -> Result<BSTR>; fn SetDescription(&self, desc: &BSTR) -> Result<()>; fn ApplicationName(&self) -> Result<BSTR>; fn SetApplicationName(&self, imagefilename: &BSTR) -> Result<()>; fn ServiceName(&self) -> Result<BSTR>; fn SetServiceName(&self, servicename: &BSTR) -> Result<()>; fn Protocol(&self) -> Result<i32>; fn SetProtocol(&self, protocol: i32) -> Result<()>; fn LocalPorts(&self) -> Result<BSTR>; fn SetLocalPorts(&self, portnumbers: &BSTR) -> Result<()>; fn RemotePorts(&self) -> Result<BSTR>; fn SetRemotePorts(&self, portnumbers: &BSTR) -> Result<()>; fn LocalAddresses(&self) -> Result<BSTR>; fn SetLocalAddresses(&self, localaddrs: &BSTR) -> Result<()>; fn RemoteAddresses(&self) -> Result<BSTR>; fn SetRemoteAddresses(&self, remoteaddrs: &BSTR) -> Result<()>; fn IcmpTypesAndCodes(&self) -> Result<BSTR>; fn SetIcmpTypesAndCodes(&self, icmptypesandcodes: &BSTR) -> Result<()>; fn Direction(&self) -> Result<NET_FW_RULE_DIRECTION>; fn SetDirection(&self, dir: NET_FW_RULE_DIRECTION) -> Result<()>; fn Interfaces(&self) -> Result<VARIANT>; fn SetInterfaces(&self, interfaces: &VARIANT) -> Result<()>; fn InterfaceTypes(&self) -> Result<BSTR>; fn SetInterfaceTypes(&self, interfacetypes: &BSTR) -> Result<()>; fn Enabled(&self) -> Result<VARIANT_BOOL>; fn SetEnabled(&self, enabled: VARIANT_BOOL) -> Result<()>; fn Grouping(&self) -> Result<BSTR>; fn SetGrouping(&self, context: &BSTR) -> Result<()>; fn Profiles(&self) -> Result<i32>; fn SetProfiles(&self, profiletypesbitmask: i32) -> Result<()>; fn EdgeTraversal(&self) -> Result<VARIANT_BOOL>; fn SetEdgeTraversal(&self, enabled: VARIANT_BOOL) -> Result<()>; fn Action(&self) -> Result<NET_FW_ACTION>; fn SetAction(&self, action: NET_FW_ACTION) -> Result<()>;
}

Required Methods§

fn Name(&self) -> Result<BSTR>

fn SetName(&self, name: &BSTR) -> Result<()>

fn Description(&self) -> Result<BSTR>

fn SetDescription(&self, desc: &BSTR) -> Result<()>

fn ApplicationName(&self) -> Result<BSTR>

fn SetApplicationName(&self, imagefilename: &BSTR) -> Result<()>

fn ServiceName(&self) -> Result<BSTR>

fn SetServiceName(&self, servicename: &BSTR) -> Result<()>

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

fn SetProtocol(&self, protocol: i32) -> Result<()>

fn LocalPorts(&self) -> Result<BSTR>

fn SetLocalPorts(&self, portnumbers: &BSTR) -> Result<()>

fn RemotePorts(&self) -> Result<BSTR>

fn SetRemotePorts(&self, portnumbers: &BSTR) -> Result<()>

fn LocalAddresses(&self) -> Result<BSTR>

fn SetLocalAddresses(&self, localaddrs: &BSTR) -> Result<()>

fn RemoteAddresses(&self) -> Result<BSTR>

fn SetRemoteAddresses(&self, remoteaddrs: &BSTR) -> Result<()>

fn IcmpTypesAndCodes(&self) -> Result<BSTR>

fn SetIcmpTypesAndCodes(&self, icmptypesandcodes: &BSTR) -> Result<()>

fn Direction(&self) -> Result<NET_FW_RULE_DIRECTION>

fn SetDirection(&self, dir: NET_FW_RULE_DIRECTION) -> Result<()>

fn Interfaces(&self) -> Result<VARIANT>

fn SetInterfaces(&self, interfaces: &VARIANT) -> Result<()>

fn InterfaceTypes(&self) -> Result<BSTR>

fn SetInterfaceTypes(&self, interfacetypes: &BSTR) -> Result<()>

fn Enabled(&self) -> Result<VARIANT_BOOL>

fn SetEnabled(&self, enabled: VARIANT_BOOL) -> Result<()>

fn Grouping(&self) -> Result<BSTR>

fn SetGrouping(&self, context: &BSTR) -> Result<()>

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

fn SetProfiles(&self, profiletypesbitmask: i32) -> Result<()>

fn EdgeTraversal(&self) -> Result<VARIANT_BOOL>

fn SetEdgeTraversal(&self, enabled: VARIANT_BOOL) -> Result<()>

fn Action(&self) -> Result<NET_FW_ACTION>

fn SetAction(&self, action: NET_FW_ACTION) -> Result<()>

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§