pub fn protected_call_with<E>(
cx: &mut Cx,
function: Value,
args: Args,
map_error: impl FnOnce(&mut Cx, Error) -> Result<E>,
) -> Result<ProtectedOutcome<E>>Expand description
Calls function while allowing a typed raised payload at the boundary.
This is the generic seam used by crate::RaisedProtectedOutcome; the
original protected_call remains source-compatible for ordinary values.