pub fn protect_response<R>(
response: impl WithMsgNative,
ctx: &mut PrimitiveContext,
correlation: &mut oscore_requestid_t,
writer: impl FnOnce(&mut ProtectedMessage) -> R,
) -> Result<R, ProtectError>Expand description
Synchronous version of async_protect_response, see there.