pub enum ProposalValidationError {
Show 16 variants
LibraryError(LibraryError),
UnknownMember,
DuplicateSignatureKey,
DuplicateEncryptionKey,
DuplicateInitKey,
InitEncryptionKeyCollision,
DuplicateMemberRemoval,
UnknownMemberRemoval,
UpdateFromNonMember,
CommitterIncludedOwnUpdate,
InsufficientCapabilities,
InvalidAddProposalCiphersuiteOrVersion,
Psk(PskError),
UnsupportedProposalType,
LeafNodeValidation(LeafNodeValidationError),
ExternalInitProposalInRegularCommit,
}
Expand description
Proposal validation error
Variants§
LibraryError(LibraryError)
See LibraryError
for more details.
UnknownMember
The sender could not be matched to a member of the group.
DuplicateSignatureKey
Duplicate signature key in proposals and group.
DuplicateEncryptionKey
Duplicate encryption key in proposals and group.
DuplicateInitKey
Duplicate init key in proposals.
InitEncryptionKeyCollision
The HPKE init and encryption keys are the same.
DuplicateMemberRemoval
Duplicate remove proposals for the same member.
UnknownMemberRemoval
The remove proposal referenced a non-existing member.
UpdateFromNonMember
Found an update from a non-member.
CommitterIncludedOwnUpdate
The Commit includes update proposals from the committer.
InsufficientCapabilities
The capabilities of the add proposal are insufficient for this group.
InvalidAddProposalCiphersuiteOrVersion
The add proposal’s ciphersuite or protocol version do not match the ones in the group context.
Psk(PskError)
See PskError
for more details.
UnsupportedProposalType
The proposal type is not supported by all group members.
LeafNodeValidation(LeafNodeValidationError)
See LeafNodeValidationError
for more details.
ExternalInitProposalInRegularCommit
Regular Commits may not contain ExternalInit proposals, but one was found
Trait Implementations§
Source§impl Clone for ProposalValidationError
impl Clone for ProposalValidationError
Source§fn clone(&self) -> ProposalValidationError
fn clone(&self) -> ProposalValidationError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ProposalValidationError
impl Debug for ProposalValidationError
Source§impl Display for ProposalValidationError
impl Display for ProposalValidationError
Source§impl Error for ProposalValidationError
impl Error for ProposalValidationError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<LeafNodeValidationError> for ProposalValidationError
impl From<LeafNodeValidationError> for ProposalValidationError
Source§fn from(source: LeafNodeValidationError) -> Self
fn from(source: LeafNodeValidationError) -> Self
Source§impl From<LibraryError> for ProposalValidationError
impl From<LibraryError> for ProposalValidationError
Source§fn from(source: LibraryError) -> Self
fn from(source: LibraryError) -> Self
Source§impl From<ProposalValidationError> for CreateCommitError
impl From<ProposalValidationError> for CreateCommitError
Source§fn from(source: ProposalValidationError) -> Self
fn from(source: ProposalValidationError) -> Self
Source§impl From<ProposalValidationError> for StageCommitError
impl From<ProposalValidationError> for StageCommitError
Source§fn from(source: ProposalValidationError) -> Self
fn from(source: ProposalValidationError) -> Self
Source§impl From<PskError> for ProposalValidationError
impl From<PskError> for ProposalValidationError
Source§impl PartialEq for ProposalValidationError
impl PartialEq for ProposalValidationError
impl StructuralPartialEq for ProposalValidationError
Auto Trait Implementations§
impl Freeze for ProposalValidationError
impl RefUnwindSafe for ProposalValidationError
impl Send for ProposalValidationError
impl Sync for ProposalValidationError
impl Unpin for ProposalValidationError
impl UnwindSafe for ProposalValidationError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more