Crate treasury_api

Source
Expand description

Defines API to communicate between client and server.

Structs§

Handshake
First message that must be sent by client after connection to treasury server.
MessageHeader
OpenRequest
First request that must follow handshake. Opens particular treasury the client is going to work with.

Enums§

FetchUrlResponse
FindResponse
OpenResponse
Response to the OpenRequest
Request
Requests to Treasury instance.
StoreResponse
Response to store request.

Constants§

DEFAULT_PORT
MAGIC

Functions§

get_port
recv_handshake
recv_message
send_handshake
send_message
version