Crate signal_cli_jsonrpc_client

Crate signal_cli_jsonrpc_client 

Source
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§

DataMessage
Envelope
GroupInfo
Identity
Identity information returned by listIdentities
JsonLink
RecvMessage
SafetyNumber
A validated Signal safety number (60 digits, optionally separated by whitespace).
SignalMessage
Helper for invoking send, which has way too many parameters
SignalTrustSet
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§

MessageTarget
Target for a SignalMessage - either individual recipients or a group
RpcClientError
Error type.
TrustLevel
Trust level for an identity

Traits§

RpcClient
Client implementation for the Rpc RPC API.
SubscriptionClientT
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.