pub enum StoreProtocolError {
Show 47 variants
InvalidObjectHash(String),
UnsupportedVersion(u32),
Malformed(String),
Json(Error),
Storage(StorageError),
CircleControlCoord(CircleControlCoordError),
ProviderProbe(Box<ProviderProbeError>),
AuthorStreamId(AuthorStreamIdParseError),
InvalidSignature,
OwnerPromotionMismatch,
RelocatedSlot {
expected: String,
actual: String,
},
RelocatedPackage {
expected: String,
actual: String,
},
RelocatedCandidateObject {
expected: String,
actual: String,
},
StoreRootMismatch {
expected: ObjectHash,
actual: ObjectHash,
},
StoreRootIdMismatch {
expected: ObjectHash,
actual: ObjectHash,
},
StoreMismatch {
expected: String,
actual: String,
},
FounderMismatch {
expected: String,
actual: String,
},
InvalidFounder,
SyncRoutingMismatch {
expected: ObjectHash,
actual: ObjectHash,
},
InvalidMergeMembershipControl,
EmptyBatch,
MissingStorePackage,
DuplicateDeviceRegistration {
device_id: String,
},
DeviceRegistrationRefMismatch {
device_id: String,
expected: ObjectHash,
actual: ObjectHash,
},
JoinAttemptMismatch,
DeviceReadinessMismatch,
JoinOutcomeMismatch,
ProviderAccessMismatch,
OwnerRecoveryMismatch,
DeviceStateMismatch,
MissingCirclePackage(CircleId),
DuplicateCirclePackage(CircleId),
DuplicateCircleControl(CircleId),
InvalidCircleControlCoord,
RelocatedCirclePackage {
circle_id: CircleId,
expected: String,
actual: String,
},
InvalidSequence(u64),
UnexpectedPredecessor,
MissingPredecessor,
InvalidAckSequence(u64),
UnexpectedAckPredecessor,
MissingAckPredecessor,
InvalidMembershipCoordinate {
author: String,
grant: String,
stream_id: String,
seq: u64,
entry_hash: String,
},
InvalidMembershipResolutionAuthority(String),
PackageTooLarge,
PackageLengthMismatch {
expected: u64,
actual: u64,
},
PackageHashMismatch {
expected: ObjectHash,
actual: ObjectHash,
},
ObjectHashMismatch {
expected: ObjectHash,
actual: ObjectHash,
},
}Variants§
InvalidObjectHash(String)
UnsupportedVersion(u32)
Malformed(String)
Json(Error)
Storage(StorageError)
CircleControlCoord(CircleControlCoordError)
ProviderProbe(Box<ProviderProbeError>)
AuthorStreamId(AuthorStreamIdParseError)
InvalidSignature
OwnerPromotionMismatch
RelocatedSlot
RelocatedPackage
RelocatedCandidateObject
StoreRootMismatch
StoreRootIdMismatch
StoreMismatch
FounderMismatch
InvalidFounder
SyncRoutingMismatch
InvalidMergeMembershipControl
EmptyBatch
MissingStorePackage
DuplicateDeviceRegistration
DeviceRegistrationRefMismatch
JoinAttemptMismatch
DeviceReadinessMismatch
JoinOutcomeMismatch
ProviderAccessMismatch
OwnerRecoveryMismatch
DeviceStateMismatch
MissingCirclePackage(CircleId)
DuplicateCirclePackage(CircleId)
DuplicateCircleControl(CircleId)
InvalidCircleControlCoord
RelocatedCirclePackage
InvalidSequence(u64)
UnexpectedPredecessor
MissingPredecessor
InvalidAckSequence(u64)
UnexpectedAckPredecessor
MissingAckPredecessor
InvalidMembershipCoordinate
InvalidMembershipResolutionAuthority(String)
PackageTooLarge
PackageLengthMismatch
PackageHashMismatch
ObjectHashMismatch
Trait Implementations§
Source§impl Debug for StoreProtocolError
impl Debug for StoreProtocolError
Source§impl Display for StoreProtocolError
impl Display for StoreProtocolError
Source§impl Error for StoreProtocolError
impl Error for StoreProtocolError
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<AuthorStreamIdParseError> for StoreProtocolError
impl From<AuthorStreamIdParseError> for StoreProtocolError
Source§fn from(source: AuthorStreamIdParseError) -> Self
fn from(source: AuthorStreamIdParseError) -> Self
Converts to this type from the input type.
Source§impl From<CircleControlCoordError> for StoreProtocolError
impl From<CircleControlCoordError> for StoreProtocolError
Source§fn from(source: CircleControlCoordError) -> Self
fn from(source: CircleControlCoordError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for StoreProtocolError
impl From<Error> for StoreProtocolError
Source§impl From<InvalidObjectHash> for StoreProtocolError
impl From<InvalidObjectHash> for StoreProtocolError
Source§fn from(error: InvalidObjectHash) -> Self
fn from(error: InvalidObjectHash) -> Self
Converts to this type from the input type.
Source§impl From<ProviderProbeError> for StoreProtocolError
impl From<ProviderProbeError> for StoreProtocolError
Source§fn from(error: ProviderProbeError) -> Self
fn from(error: ProviderProbeError) -> Self
Converts to this type from the input type.
Source§impl From<StorageError> for StoreProtocolError
impl From<StorageError> for StoreProtocolError
Source§fn from(source: StorageError) -> Self
fn from(source: StorageError) -> Self
Converts to this type from the input type.
Source§impl From<StoreProtocolError> for AudiencePackageError
impl From<StoreProtocolError> for AudiencePackageError
Source§fn from(source: StoreProtocolError) -> Self
fn from(source: StoreProtocolError) -> Self
Converts to this type from the input type.
Source§impl From<StoreProtocolError> for CircleJournalError
impl From<StoreProtocolError> for CircleJournalError
Source§fn from(source: StoreProtocolError) -> Self
fn from(source: StoreProtocolError) -> Self
Converts to this type from the input type.
Source§impl From<StoreProtocolError> for CircleStateError
impl From<StoreProtocolError> for CircleStateError
Source§fn from(source: StoreProtocolError) -> Self
fn from(source: StoreProtocolError) -> Self
Converts to this type from the input type.
Source§impl From<StoreProtocolError> for DeviceJoinExchangeError
impl From<StoreProtocolError> for DeviceJoinExchangeError
Source§fn from(source: StoreProtocolError) -> Self
fn from(source: StoreProtocolError) -> Self
Converts to this type from the input type.
Source§impl From<StoreProtocolError> for PreparedCommitError
impl From<StoreProtocolError> for PreparedCommitError
Source§fn from(source: StoreProtocolError) -> Self
fn from(source: StoreProtocolError) -> Self
Converts to this type from the input type.
Source§impl From<StoreProtocolError> for ProviderProbeError
impl From<StoreProtocolError> for ProviderProbeError
Source§fn from(source: StoreProtocolError) -> Self
fn from(source: StoreProtocolError) -> Self
Converts to this type from the input type.
Source§impl From<StoreProtocolError> for RemoteObjectRecordError
impl From<StoreProtocolError> for RemoteObjectRecordError
Source§fn from(source: StoreProtocolError) -> Self
fn from(source: StoreProtocolError) -> Self
Converts to this type from the input type.
Source§impl From<StoreProtocolError> for StorageError
impl From<StoreProtocolError> for StorageError
Source§fn from(source: StoreProtocolError) -> Self
fn from(source: StoreProtocolError) -> Self
Converts to this type from the input type.
Source§impl From<StoreProtocolError> for StoreDeviceExclusionJournalError
impl From<StoreProtocolError> for StoreDeviceExclusionJournalError
Source§fn from(source: StoreProtocolError) -> Self
fn from(source: StoreProtocolError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StoreProtocolError
impl !RefUnwindSafe for StoreProtocolError
impl Send for StoreProtocolError
impl Sync for StoreProtocolError
impl Unpin for StoreProtocolError
impl UnsafeUnpin for StoreProtocolError
impl !UnwindSafe for StoreProtocolError
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