fn messages(self) -> Vec<MessageContent> {
        let ReceivedMessages {
            bval,
            aux,
            conf,
            term,
            coin,
        } = self;
        let mut messages = Vec::new();
        for b in bval {
            messages.push(MessageContent::SbvBroadcast(SbvMessage::BVal(b)));
        }
        for b in aux {
            messages.push(MessageContent::SbvBroadcast(SbvMessage::Aux(b)));
        }
        if let Some(bs) = conf {
            messages.push(MessageContent::Conf(bs));
        }
        if let Some(b) = term {
            messages.push(MessageContent::Term(b));
        }
        if let Some(ss) = coin {
            messages.push(MessageContent::Coin(Box::new(TsMessage(ss))));
        }
        messages
    }
/// Creates message content from `ReceivedMessages`. That message content can then be handled.
Creates message content from `ReceivedMessages`. That message content can then be handled.
Creates message content from ` ReceivedMessages ` . That message content can then be handled .
fn messages(self) -> Vec<MessageContent> {
        let ReceivedMessages {
            bval,
            aux,
            conf,
            term,
            coin,
        } = self;
        let mut messages = Vec::new();
        for b in bval {
            messages.push(MessageContent::SbvBroadcast(SbvMessage::BVal(b)));
        }
        for b in aux {
            messages.push(MessageContent::SbvBroadcast(SbvMessage::Aux(b)));
        }
        if let Some(bs) = conf {
            messages.push(MessageContent::Conf(bs));
        }
        if let Some(b) = term {
            messages.push(MessageContent::Term(b));
        }
        if let Some(ss) = coin {
            messages.push(MessageContent::Coin(Box::new(TsMessage(ss))));
        }
        messages
    }
fn messages ( self ) -> Vec < MessageContent > { let ReceivedMessages { bval , aux , conf , term , coin , } = self ; let mut messages = Vec :: new ( ) ; for b in bval { messages . push ( MessageContent :: SbvBroadcast ( SbvMessage :: BVal ( b ) ) ) ; } for b in aux { messages . push ( MessageContent :: SbvBroadcast ( SbvMessage :: Aux ( b ) ) ) ; } if let Some ( bs ) = conf { messages . push ( MessageContent :: Conf ( bs ) ) ; } if let Some ( b ) = term { messages . push ( MessageContent :: Term ( b ) ) ; } if let Some ( ss ) = coin { messages . push ( MessageContent :: Coin ( Box :: new ( TsMessage ( ss ) ) ) ) ; } messages }
Creates message content from `ReceivedMessages`.
Creates message content from ` ReceivedMessages ` .
self
self