Skip to main content

Module ipc_client

Module ipc_client 

Source

StructsΒ§

IpcClientImpl
An IPC client that handles communication between different components and clients. It uses a crypto provider to encrypt and decrypt messages, a communication backend to send and receive messages, and a session repository to persist sessions.
IpcClientInner πŸ”’
Internal shared state for the IPC client.
IpcClientSubscription
A subscription to receive messages over IPC. The subcription will start buffering messages after its creation and return them when receive() is called. Messages received before the subscription was created will not be returned.
IpcClientTypedSubscription
A subscription to receive messages over IPC. The subcription will start buffering messages after its creation and return them when receive() is called. Messages received before the subscription was created will not be returned.
SendOutcome πŸ”’
The outcome of send_message.

FunctionsΒ§

handle_rpc_request πŸ”’
send_fragment πŸ”’
Send a single fragment through the crypto provider, stopping the client on a fatal error.
send_message πŸ”’
Send a message through the crypto provider, split into as many fragments as the provider’s payload limit requires. Fragments are sent in order and sending stops at the first failed fragment. A fatal error stops the client.
stop_inner πŸ”’