Astarte.RPC.Client behaviour (astarte_rpc v1.0.4)
View Source
This module defines the Astarte RPC Client behaviour.
Its responsibility is delivering the serialized request to the RPC server and delivering
the serialized reply to the caller (if needed).
Specs
rpc_call(serialized_request :: binary(), destination :: term()) ::
{:ok, serialized_reply :: binary()} | {:error, reason :: term()}
Specs
rpc_call(
serialized_request :: binary(),
destination :: term(),
timeout :: integer()
) :: {:ok, serialized_reply :: binary()} | {:error, reason :: term()}
Specs
rpc_cast(serialized_request :: binary(), destination :: term()) :: :ok