pub enum ProposalValidationError {
Show 16 variants
LibraryError(LibraryError),
UnknownMember,
DuplicateIdentityAddProposal,
DuplicateSignatureKeyAddProposal,
DuplicatePublicKeyAddProposal,
ExistingIdentityAddProposal,
ExistingSignatureKeyAddProposal,
ExistingPublicKeyAddProposal,
UpdateProposalIdentityMismatch,
ExistingSignatureKeyUpdateProposal,
ExistingPublicKeyUpdateProposal,
DuplicateMemberRemoval,
UnknownMemberRemoval,
UpdateFromNonMember,
CommitterIncludedOwnUpdate,
InsufficientCapabilities,
}
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.
DuplicateIdentityAddProposal
Found two add proposals with the same identity.
DuplicateSignatureKeyAddProposal
Found two add proposals with the same signature key.
DuplicatePublicKeyAddProposal
Found two add proposals with the same HPKE public key.
ExistingIdentityAddProposal
Identity of the add proposal already existed in tree.
ExistingSignatureKeyAddProposal
Signature key of the add proposal already existed in tree.
ExistingPublicKeyAddProposal
HPKE public key of the add proposal already existed in tree.
UpdateProposalIdentityMismatch
The identity of the update proposal did not match the existing identity.
ExistingSignatureKeyUpdateProposal
Signature key of the update proposal already existed in tree.
ExistingPublicKeyUpdateProposal
HPKE public key of the update proposal already existed in tree.
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.
Trait Implementations
sourceimpl Clone for ProposalValidationError
impl Clone for ProposalValidationError
sourcefn clone(&self) -> ProposalValidationError
fn clone(&self) -> ProposalValidationError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ProposalValidationError
impl Debug for ProposalValidationError
sourceimpl Display for ProposalValidationError
impl Display for ProposalValidationError
sourceimpl Error for ProposalValidationError
impl Error for ProposalValidationError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<LibraryError> for ProposalValidationError
impl From<LibraryError> for ProposalValidationError
sourcefn from(source: LibraryError) -> Self
fn from(source: LibraryError) -> Self
Converts to this type from the input type.
sourceimpl From<ProposalValidationError> for StageCommitError
impl From<ProposalValidationError> for StageCommitError
sourcefn from(source: ProposalValidationError) -> Self
fn from(source: ProposalValidationError) -> Self
Converts to this type from the input type.
sourceimpl From<ProposalValidationError> for CreateCommitError
impl From<ProposalValidationError> for CreateCommitError
sourcefn from(source: ProposalValidationError) -> Self
fn from(source: ProposalValidationError) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<ProposalValidationError> for ProposalValidationError
impl PartialEq<ProposalValidationError> for ProposalValidationError
sourcefn eq(&self, other: &ProposalValidationError) -> bool
fn eq(&self, other: &ProposalValidationError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ProposalValidationError) -> bool
fn ne(&self, other: &ProposalValidationError) -> bool
This method tests for !=
.
impl StructuralPartialEq for ProposalValidationError
Auto Trait Implementations
impl RefUnwindSafe for ProposalValidationError
impl Send for ProposalValidationError
impl Sync for ProposalValidationError
impl Unpin for ProposalValidationError
impl UnwindSafe for ProposalValidationError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more