Expand description
JSON-RPC client for signal-cli daemon.
This crate provides a Rust client for communicating with signal-cli running in JSON-RPC daemon mode. It supports both TCP and Unix domain socket connections.
The RPC interface and transport code is based on the example client code from the signal-cli repository: https://github.com/AsamK/signal-cli/blob/master/client/src/jsonrpc.rs
Structs§
- Data
Message - Envelope
- Group
Info - Identity
- Identity information returned by listIdentities
- Json
Link - Recv
Message - Safety
Number - A validated Signal safety number (60 digits, optionally separated by whitespace).
- Signal
Message - Helper for invoking send, which has way too many parameters
- Signal
Trust Set - A set of Signal UUIDs with optional safety numbers for trust verification.
- Uuid
- A validated Signal UUID in the format
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.
Enums§
- Message
Target - Target for a SignalMessage - either individual recipients or a group
- RpcClient
Error - Error type.
- Trust
Level - Trust level for an identity
Traits§
- RpcClient
- Client implementation for the
RpcRPC API. - Subscription
ClientT - JSON-RPC client interface that can make requests, notifications and subscriptions.
Functions§
- connect_
ipc - Connect to signal-cli over unix domain socket
- connect_
tcp - Connect to signal-cli over tcp socket
Type Aliases§
- Subscription
- A subscription to Signal messages from
subscribe_receive.