Skip to main content

RemoteFunctionHandlerWithMetadata

Type Alias RemoteFunctionHandlerWithMetadata 

Source
pub type RemoteFunctionHandlerWithMetadata = Arc<dyn Fn(Value, Option<Value>) -> BoxFuture<'static, Result<Value, Error>> + Send + Sync>;
Expand description

A dispatchable function handler that also receives the optional per-invocation metadata sidecar (delivered as a distinct argument rather than folded into the payload; None when the caller attached none).

This is the SDK’s internal dispatch shape: handlers built from metadata-unaware functions ignore the second argument.

Aliased Type§

pub struct RemoteFunctionHandlerWithMetadata { /* private fields */ }