Expand description
The network traits. Is what we use to send and receive messages over the network as
the protocol
This file contains the Sender and Receiver traits. These traits are used by the
[RequestResponseProtocol] to send and receive messages from a network or other source.
There is no blanket implementation of Receiver for a network, because both HS and the
confirmation layer will receive messages from a single point and then decide what to do
with them (as opposed to having some sort of filtering mechanism). So for Receiver I’ve
done a blanket implementation for channels that send Vec<u8>s.
Traits§
- Receiver
- The
Receivertrait is used to allow the [RequestResponseProtocol] to receive messages from a network or other source. - Sender
- The
Sendertrait is used to allow the [RequestResponseProtocol] to send messages to a specific recipient
Type Aliases§
- Bytes
- A type alias for a shareable byte array