• Home
  • Raw
  • Download

Lines Matching full:proposal

47     proposal::{Proposal, ProposalOrRef},
56 use super::proposal::CustomProposal;
104 pub unused_proposals: Vec<crate::mls_rules::ProposalInfo<Proposal>>,
139 pub fn unused_proposals(&self) -> &[crate::mls_rules::ProposalInfo<Proposal>] { in unused_proposals() argument
150 /// [proposal rules](crate::client_builder::ClientBuilder::mls_rules).
156 pub(super) proposals: Vec<Proposal>,
167 /// Insert an [`AddProposal`](crate::group::proposal::AddProposal) into
170 let proposal = self.group.add_proposal(key_package)?; in add_member() localVariable
171 self.proposals.push(proposal); in add_member()
192 /// Insert a [`RemoveProposal`](crate::group::proposal::RemoveProposal) into
195 let proposal = self.group.remove_proposal(index)?; in remove_member() localVariable
196 self.proposals.push(proposal); in remove_member()
201 /// [`GroupContextExtensions`](crate::group::proposal::Proposal::GroupContextExtensions)
204 let proposal = self.group.group_context_extensions_proposal(extensions); in set_group_context_ext() localVariable
205 self.proposals.push(proposal); in set_group_context_ext()
210 /// [`PreSharedKeyProposal`](crate::group::proposal::PreSharedKeyProposal) with
215 let proposal = self.group.psk_proposal(key_id)?; in add_external_psk() localVariable
216 self.proposals.push(proposal); in add_external_psk()
221 /// [`PreSharedKeyProposal`](crate::group::proposal::PreSharedKeyProposal) with
232 let proposal = self.group.psk_proposal(key_id)?; in add_resumption_psk() localVariable
233 self.proposals.push(proposal); in add_resumption_psk()
237 /// Insert a [`ReInitProposal`](crate::group::proposal::ReInitProposal) into
246 let proposal = self in reinit() localVariable
250 self.proposals.push(proposal); in reinit()
254 /// Insert a [`CustomProposal`](crate::group::proposal::CustomProposal) into
257 pub fn custom_proposal(mut self, proposal: CustomProposal) -> Self { in custom_proposal()
258 self.proposals.push(Proposal::Custom(proposal)); in custom_proposal()
262 /// Insert a proposal that was previously constructed such as when a
263 /// proposal is returned from
265 pub fn raw_proposal(mut self, proposal: Proposal) -> Self { in raw_proposal()
266 self.proposals.push(proposal); in raw_proposal()
271 /// proposal is returned from
273 pub fn raw_proposals(mut self, mut proposals: Vec<Proposal>) -> Self { in raw_proposals()
316 /// [proposal rules](crate::client_builder::ClientBuilder::mls_rules).
372 /// in the commit, or if any proposal other than
373 /// [`Add`](crate::group::proposal::Proposal::Add),
374 /// [`Psk`](crate::group::proposal::Proposal::Psk),
375 /// or [`ReInit`](crate::group::proposal::Proposal::ReInit) are part of the commit.
408 proposals: Vec<Proposal>, in commit_internal() argument
495 // member (from an add proposal) MUST be excluded from the resolution during the in commit_internal()
551 .map(|info| info.proposal.key_package.clone()) in commit_internal()
856 proposal::ProposalType,
868 group::proposal::PreSharedKeyProposal,
887 expected: Vec<Proposal>, in assert_commit_builder_output() argument
900 commit_data.proposals.into_iter().for_each(|proposal| { in assert_commit_builder_output()
901 let proposal = match proposal { in assert_commit_builder_output() localVariable
902 ProposalOrRef::Proposal(p) => p, in assert_commit_builder_output()
904 ProposalOrRef::Reference(_) => panic!("found proposal reference"), in assert_commit_builder_output()
908 if let Some(psk_id) = match proposal.as_ref() { in assert_commit_builder_output()
909Proposal::Psk(PreSharedKeyProposal { psk: PreSharedKeyID { key_id: JustPreSharedKeyID::External(ps… in assert_commit_builder_output()
912 …let found = expected.iter().any(|item| matches!(item, Proposal::Psk(PreSharedKeyProposal { psk: Pr… in assert_commit_builder_output()
916 assert!(expected.contains(&proposal)); in assert_commit_builder_output()
920 assert!(expected.contains(&proposal)); in assert_commit_builder_output()
1108 let proposal = CustomProposal::new(42.into(), vec![0, 1]); in test_commit_builder_custom_proposal() localVariable
1112 .custom_proposal(proposal.clone()) in test_commit_builder_custom_proposal()
1117 assert_commit_builder_output(group, commit_output, vec![Proposal::Custom(proposal)], 0); in test_commit_builder_custom_proposal()