pub fn Fn<R: Runtime>(
_ApplicationHandle: &AppHandle<R>,
MethodName: &str,
Parameters: Value,
) -> Result<MappedEffect, String>Expand description
Maps a string-based method name (command or RPC) to its corresponding effect
constructor, returning a boxed closure (MappedEffect) that can be
executed by the ApplicationRunTime.
§Arguments
ApplicationHandle: Tauri app handle for accessing stateMethodName: The command/RPC method name to mapParameters: JSON value containing parameters for the effect
§Returns
Result<MappedEffect, String> - either a boxed async closure or an error
if the command is unknown