fidl_fuchsia_net_interfaces_ext::admin

Function 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].