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

Function model_direction_to_native

resources/windows_firewall/src/firewall.rs:151–156  ·  view source on GitHub ↗
(direction: &RuleDirection)

Source from the content-addressed store, hash-verified

149}
150
151fn model_direction_to_native(direction: &RuleDirection) -> NET_FW_RULE_DIRECTION {
152 match direction {
153 RuleDirection::Inbound => NET_FW_RULE_DIR_IN,
154 RuleDirection::Outbound => NET_FW_RULE_DIR_OUT,
155 }
156}
157
158fn native_action_to_model(action: NET_FW_ACTION) -> Option<RuleAction> {
159 if action == NET_FW_ACTION_ALLOW {

Callers 1

apply_rule_propertiesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected