pub enum MembershipError {
Show 44 variants
EmptyChain,
UnsupportedVersion(usize),
StoreMismatch {
index: usize,
expected: String,
actual: String,
},
InvalidSignature(usize),
CoordinateMismatch {
index: usize,
expected: Box<MembershipCoord>,
actual: Box<MembershipCoord>,
},
MissingSequence {
author: String,
grant: MembershipGrantId,
seq: u64,
},
ConflictingSequence {
author: String,
grant: MembershipGrantId,
seq: u64,
},
ExactEntryMismatch {
coord: Box<MembershipCoord>,
},
BrokenStreamLink {
index: usize,
expected: Option<ObjectHash>,
actual: Option<ObjectHash>,
},
MissingOwnDependency {
index: usize,
},
MissingDependency {
index: usize,
dependency: Box<MembershipCoord>,
},
NonCanonicalDependencyFrontier {
index: usize,
},
DependencyCycle,
InvalidFounder,
AuthorGrantInactive {
index: usize,
grant: MembershipGrantId,
},
DuplicateGrant {
index: usize,
grant: MembershipGrantId,
},
GrantOwnerMismatch {
index: usize,
grant: MembershipGrantId,
},
GrantSetMismatch {
index: usize,
pubkey: String,
},
EmptyRemoval {
index: usize,
},
MissingOwnerRevocationBarrier {
index: usize,
grant: MembershipGrantId,
},
InvalidOwnerRevocationBarrier {
index: usize,
grant: MembershipGrantId,
},
MissingOwnerRecoveryState,
UnexpectedOwnerRecoveryState,
InvalidOwnerMembershipAnchor(usize),
InvalidWrappedKeys(usize),
MissingCheckpointGrant {
grant: MembershipGrantId,
},
MissingCheckpointRetirementEvidence {
grant: MembershipGrantId,
},
MissingRetirementBarrier {
grant: MembershipGrantId,
authority: Box<MembershipCoord>,
},
MissingWrappedKeyCoverage {
recipient_pubkey: String,
rotation: Box<MembershipCoord>,
},
NoActiveOwner,
RevocationCycleTooWide {
sources: usize,
maximum: usize,
},
SignerIsNotOwner(String),
NotAMember(String),
OwnerPromotionRequired,
InvalidOwnerPromotion,
PrunedAuthorStream,
SequenceExhausted,
InvalidResolutionActivation(usize),
ResolutionActivationRequiresFreshStream,
InvalidProviderAdminChange(usize),
Conflict,
MissingConflictHeads,
InvalidConflictResolution,
ProviderAdmin(ProviderAdminReducerError),
}Variants§
EmptyChain
UnsupportedVersion(usize)
StoreMismatch
InvalidSignature(usize)
CoordinateMismatch
MissingSequence
ConflictingSequence
ExactEntryMismatch
Fields
§
coord: Box<MembershipCoord>BrokenStreamLink
MissingOwnDependency
MissingDependency
NonCanonicalDependencyFrontier
DependencyCycle
InvalidFounder
AuthorGrantInactive
DuplicateGrant
GrantOwnerMismatch
GrantSetMismatch
EmptyRemoval
MissingOwnerRevocationBarrier
InvalidOwnerRevocationBarrier
MissingOwnerRecoveryState
UnexpectedOwnerRecoveryState
InvalidOwnerMembershipAnchor(usize)
InvalidWrappedKeys(usize)
MissingCheckpointGrant
Fields
§
grant: MembershipGrantIdMissingCheckpointRetirementEvidence
Fields
§
grant: MembershipGrantIdMissingRetirementBarrier
MissingWrappedKeyCoverage
NoActiveOwner
RevocationCycleTooWide
SignerIsNotOwner(String)
NotAMember(String)
OwnerPromotionRequired
InvalidOwnerPromotion
PrunedAuthorStream
SequenceExhausted
InvalidResolutionActivation(usize)
ResolutionActivationRequiresFreshStream
InvalidProviderAdminChange(usize)
Conflict
MissingConflictHeads
InvalidConflictResolution
ProviderAdmin(ProviderAdminReducerError)
Trait Implementations§
Source§impl Debug for MembershipError
impl Debug for MembershipError
Source§impl Display for MembershipError
impl Display for MembershipError
Source§impl Error for MembershipError
impl Error for MembershipError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<ProviderAdminReducerError> for MembershipError
impl From<ProviderAdminReducerError> for MembershipError
Source§fn from(source: ProviderAdminReducerError) -> Self
fn from(source: ProviderAdminReducerError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MembershipError
impl PartialEq for MembershipError
impl Eq for MembershipError
impl StructuralPartialEq for MembershipError
Auto Trait Implementations§
impl Freeze for MembershipError
impl RefUnwindSafe for MembershipError
impl Send for MembershipError
impl Sync for MembershipError
impl Unpin for MembershipError
impl UnsafeUnpin for MembershipError
impl UnwindSafe for MembershipError
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
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.