MCPcopy Create free account
hub / github.com/PowerShell/DSC / model_action_to_native

Function model_action_to_native

resources/windows_firewall/src/firewall.rs:168–173  ·  view source on GitHub ↗
(action: &RuleAction)

Source from the content-addressed store, hash-verified

166}
167
168fn model_action_to_native(action: &RuleAction) -> NET_FW_ACTION {
169 match action {
170 RuleAction::Allow => NET_FW_ACTION_ALLOW,
171 RuleAction::Block => NET_FW_ACTION_BLOCK,
172 }
173}
174
175/// Converts a bitmask of firewall profile flags to a list of profile name strings.
176///

Callers 1

apply_rule_propertiesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected