Function fidl_fuchsia_net_interfaces_ext::admin::proof_from_grant
source · pub fn proof_from_grant(
grant: &GrantForInterfaceAuthorization
) -> ProofOfInterfaceAuthorization
Expand description
Convert fnet_interfaces_admin::GrantForInterfaceAuthorization
to
fnet_interfaces_admin::ProofOfInterfaceAuthorization
with fewer
permissions.
§Panics
Panics when the Event handle does not have the DUPLICATE right. Callers
need not worry about this if providing a grant received from
[GetAuthorizationForInterface
].