entropy_protocol::execute_protocol

Type Alias ChannelOut

Source
pub type ChannelOut = Broadcaster;

Aliased Type§

struct ChannelOut {
    pub broadcast: Sender<ProtocolMessage>,
    pub incoming_sender: Sender<ProtocolMessage>,
}

Fields§

§broadcast: Sender<ProtocolMessage>

Channel for outgoing protocol messages to all parties

§incoming_sender: Sender<ProtocolMessage>

Channel for incoming protocol messages from all parties A clone of the sender is kept here so that we can use it in the session loop to put messages destined for a different sub-session back into the incoming queue