pub trait NetworkPolicyDecider:
Send
+ Sync
+ 'static {
// Required method
fn decide<'life0, 'async_trait>(
&'life0 self,
req: NetworkPolicyRequest,
) -> Pin<Box<dyn Future<Output = NetworkDecision> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Decide whether a network request should be allowed.
If command or exec_policy_hint is provided, callers can map exec-policy
approvals to network access (e.g., allow all requests for commands matching
approved prefixes like curl *).