(direction: &RuleDirection)
| 149 | } |
| 150 | |
| 151 | fn 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 | |
| 158 | fn native_action_to_model(action: NET_FW_ACTION) -> Option<RuleAction> { |
| 159 | if action == NET_FW_ACTION_ALLOW { |
no outgoing calls
no test coverage detected