SendNotificationToSideCar

Function SendNotificationToSideCar 

Source
pub fn SendNotificationToSideCar(
    SideCarIdentifier: String,
    Method: String,
    Parameters: Value,
) -> ActionEffect<Arc<dyn IPCProvider>, CommonError, ()>
Expand description

Creates an effect that, when executed, will send a fire-and-forget notification to a specified sidecar process.

It uses the IPCProvider capability from the environment to perform the actual IPC send operation. Unlike SendRequestToSideCar, this effect does not wait for or expect a response.

§Parameters

  • SideCarIdentifier: The unique ID of the target sidecar process.
  • Method: The name of the notification method to be invoked on the sidecar.
  • Parameters: A serde_json::Value containing the parameters for the notification.

§Returns

An ActionEffect that resolves to () on success.