pub(crate) fn from_proposals_by_reference(
        ciphersuite: &Ciphersuite,
        backend: &impl OpenMlsCryptoProvider,
        proposals: &'a [&MlsPlaintext],
    ) -> Self {
        let mut proposal_queue = ProposalQueue::default();
        for mls_plaintext in proposals {
            // It is safe to unwrap here, because we checked that only proposals can end up
            // here.
            let queued_proposal =
                QueuedProposal::from_mls_plaintext(ciphersuite, backend, mls_plaintext).unwrap();
            proposal_queue.add(queued_proposal);
        }
        proposal_queue
    }
/// Returns a new `ProposalQueue` from proposals that were committed and
/// don't need filtering
Returns a new `ProposalQueue` from proposals that were committed and
don't need filtering
Returns a new ` ProposalQueue ` from proposals that were committed and don ' t need filtering
pub(crate) fn from_proposals_by_reference(
        ciphersuite: &Ciphersuite,
        backend: &impl OpenMlsCryptoProvider,
        proposals: &'a [&MlsPlaintext],
    ) -> Self {
        let mut proposal_queue = ProposalQueue::default();
        for mls_plaintext in proposals {
            // It is safe to unwrap here, because we checked that only proposals can end up
            // here.
            let queued_proposal =
                QueuedProposal::from_mls_plaintext(ciphersuite, backend, mls_plaintext).unwrap();
            proposal_queue.add(queued_proposal);
        }
        proposal_queue
    }
pub ( crate ) fn from_proposals_by_reference ( ciphersuite : & Ciphersuite , backend : & impl OpenMlsCryptoProvider , proposals : & ' a [ & MlsPlaintext ] , ) -> Self { let mut proposal_queue = ProposalQueue :: default ( ) ; for mls_plaintext in proposals { // It is safe to unwrap here, because we checked that only proposals can end up // here. let queued_proposal = QueuedProposal :: from_mls_plaintext ( ciphersuite , backend , mls_plaintext ) . unwrap ( ) ; proposal_queue . add ( queued_proposal ) ; } proposal_queue }
Returns a new `ProposalQueue` from proposals that were committed and
don't need filtering
Returns a new ` ProposalQueue ` from proposals that were committed and don ' t need filtering
ciphersuite
&Ciphersuite
backend
&impl OpenMlsCryptoProvider
proposals
&'a [&MlsPlaintext]
ciphersuite
&Ciphersuite
backend
&impl OpenMlsCryptoProvider
proposals
&'a [&MlsPlaintext]