Skip to main content

BebMsg

Type Alias BebMsg 

Source
pub type BebMsg<P> = Wire<Data<P>>;
Expand description

What best-effort broadcast puts on the wire for this layer’s payloads.

Written concretely rather than as <BestEffortBroadcast<Data<P>> as Protocol>::Msg: the projection is only well-formed where Data<P>: Clone, which would push that bound onto every use of Wire. The assertion below keeps the two from drifting apart.

Aliased Type§

pub struct BebMsg<P> {
    pub id: MsgId,
    pub payload: Data<P>,
}

Fields§

§id: MsgId§payload: Data<P>