pub enum StoreError {
Show 38 variants
Database(DbError),
File(FileError),
InspectBlobSource {
path: PathBuf,
source: Error,
},
BlobCache(BlobCacheError),
Object(StoreObjectError),
Protocol(StoreProtocolError),
Json(Error),
Changeset(ChangesetError),
WriterAuthorization(Box<StoreWriterAuthorizationError>),
SyncCycle(Box<SyncCycleFailure>),
AnchoredChain(Box<AnchoredChainError>),
ProtocolRoot(Box<StoreProtocolRootError>),
AudiencePackage(AudiencePackageError),
BlobPath(PathTokenError),
RemoteObject(RemoteObjectRecordError),
BlobLocator(BlobLocatorError),
PreparedCommit(PreparedCommitError),
MembershipPreparation(MembershipPreparationError),
Keyring(Box<MembershipMutationError>),
RowRoutingKey(RowRoutingKeyError),
CirclePackage(Box<CirclePackageReadError>),
MissingState {
key: &'static str,
},
InvalidState {
key: &'static str,
reason: String,
},
InvalidOutbound(String),
ActivationConflict,
Preparation(StorePreparationError),
BlobPreparationRollback(BlobPreparationRollback),
BlobPreparationCleanup(BlobPreparationCleanupError),
LocalUserBlob {
namespace: String,
id: String,
},
MissingBlob {
namespace: String,
id: String,
},
BlobStorage {
namespace: String,
id: String,
source: StorageError,
},
Pull(StorePullError),
SequenceExhausted {
current: u64,
},
PublishCountExhausted,
WriteBlockNotRecorded {
write_id: WriteId,
preparation: Box<StoreError>,
status: DbError,
},
AuthorExcluded {
device_id: StoreDeviceId,
},
MergeAnnouncementOccupied {
expected: Box<StoreBatchCommitRef>,
actual: Box<StoreBatchCommitRef>,
},
CirclePublicationBlocked(CirclePublicationBlocked),
}Variants§
Database(DbError)
File(FileError)
InspectBlobSource
BlobCache(BlobCacheError)
Object(StoreObjectError)
Protocol(StoreProtocolError)
Json(Error)
Changeset(ChangesetError)
WriterAuthorization(Box<StoreWriterAuthorizationError>)
SyncCycle(Box<SyncCycleFailure>)
AnchoredChain(Box<AnchoredChainError>)
ProtocolRoot(Box<StoreProtocolRootError>)
AudiencePackage(AudiencePackageError)
BlobPath(PathTokenError)
RemoteObject(RemoteObjectRecordError)
BlobLocator(BlobLocatorError)
PreparedCommit(PreparedCommitError)
MembershipPreparation(MembershipPreparationError)
Keyring(Box<MembershipMutationError>)
RowRoutingKey(RowRoutingKeyError)
CirclePackage(Box<CirclePackageReadError>)
MissingState
InvalidState
InvalidOutbound(String)
ActivationConflict
Another writer took the activation slot between this operation’s preparation and its publication, so the candidate had to be re-prepared and nothing was persisted. Re-derive from durable state and run the operation again; it is the ordinary outcome of two writers racing, not a damaged store.
Preparation(StorePreparationError)
BlobPreparationRollback(BlobPreparationRollback)
BlobPreparationCleanup(BlobPreparationCleanupError)
LocalUserBlob
MissingBlob
BlobStorage
Pull(StorePullError)
SequenceExhausted
PublishCountExhausted
WriteBlockNotRecorded
Preparation failed AND recording that write’s blocked status failed, so the write is not marked blocked. Carries both failures rather than reporting one and describing the other.
AuthorExcluded
Fields
§
device_id: StoreDeviceIdMergeAnnouncementOccupied
CirclePublicationBlocked(CirclePublicationBlocked)
Trait Implementations§
Source§impl Debug for StoreError
impl Debug for StoreError
Source§impl Display for StoreError
impl Display for StoreError
Source§impl Error for StoreError
impl Error for StoreError
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<AnchoredChainError> for StoreError
impl From<AnchoredChainError> for StoreError
Source§fn from(error: AnchoredChainError) -> Self
fn from(error: AnchoredChainError) -> Self
Converts to this type from the input type.
Source§impl From<AudiencePackageError> for StoreError
impl From<AudiencePackageError> for StoreError
Source§fn from(source: AudiencePackageError) -> Self
fn from(source: AudiencePackageError) -> Self
Converts to this type from the input type.
Source§impl From<BlobCacheError> for StoreError
impl From<BlobCacheError> for StoreError
Source§fn from(source: BlobCacheError) -> Self
fn from(source: BlobCacheError) -> Self
Converts to this type from the input type.
Source§impl From<BlobLocatorError> for StoreError
impl From<BlobLocatorError> for StoreError
Source§fn from(source: BlobLocatorError) -> Self
fn from(source: BlobLocatorError) -> Self
Converts to this type from the input type.
Source§impl From<ChangesetError> for StoreError
impl From<ChangesetError> for StoreError
Source§fn from(source: ChangesetError) -> Self
fn from(source: ChangesetError) -> Self
Converts to this type from the input type.
Source§impl From<CirclePackageReadError> for StoreError
impl From<CirclePackageReadError> for StoreError
Source§fn from(error: CirclePackageReadError) -> Self
fn from(error: CirclePackageReadError) -> Self
Converts to this type from the input type.
Source§impl From<DbError> for StoreError
impl From<DbError> for StoreError
Source§impl From<Error> for StoreError
impl From<Error> for StoreError
Source§impl From<FileError> for StoreError
impl From<FileError> for StoreError
Source§impl From<MembershipMutationError> for StoreError
impl From<MembershipMutationError> for StoreError
Source§fn from(error: MembershipMutationError) -> Self
fn from(error: MembershipMutationError) -> Self
Converts to this type from the input type.
Source§impl From<MembershipPreparationError> for StoreError
impl From<MembershipPreparationError> for StoreError
Source§fn from(error: MembershipPreparationError) -> Self
fn from(error: MembershipPreparationError) -> Self
Converts to this type from the input type.
Source§impl From<PathTokenError> for StoreError
impl From<PathTokenError> for StoreError
Source§fn from(source: PathTokenError) -> Self
fn from(source: PathTokenError) -> Self
Converts to this type from the input type.
Source§impl From<PreparedCommitError> for StoreError
impl From<PreparedCommitError> for StoreError
Source§fn from(error: PreparedCommitError) -> Self
fn from(error: PreparedCommitError) -> Self
Converts to this type from the input type.
Source§impl From<RemoteObjectRecordError> for StoreError
impl From<RemoteObjectRecordError> for StoreError
Source§fn from(source: RemoteObjectRecordError) -> Self
fn from(source: RemoteObjectRecordError) -> Self
Converts to this type from the input type.
Source§impl From<RowRoutingKeyError> for StoreError
impl From<RowRoutingKeyError> for StoreError
Source§fn from(source: RowRoutingKeyError) -> Self
fn from(source: RowRoutingKeyError) -> Self
Converts to this type from the input type.
Source§impl From<StoreError> for CircleOperationError
impl From<StoreError> for CircleOperationError
Source§fn from(source: StoreError) -> Self
fn from(source: StoreError) -> Self
Converts to this type from the input type.
Source§impl From<StoreError> for DeviceJoinError
impl From<StoreError> for DeviceJoinError
Source§fn from(source: StoreError) -> Self
fn from(source: StoreError) -> Self
Converts to this type from the input type.
Source§impl From<StoreError> for MembershipMutationError
impl From<StoreError> for MembershipMutationError
Source§fn from(error: StoreError) -> Self
fn from(error: StoreError) -> Self
Converts to this type from the input type.
Source§impl From<StoreError> for OwnerPromotionError
impl From<StoreError> for OwnerPromotionError
Source§fn from(error: StoreError) -> Self
fn from(error: StoreError) -> Self
Converts to this type from the input type.
Source§impl From<StoreError> for StoreAckError
impl From<StoreError> for StoreAckError
Source§fn from(source: StoreError) -> Self
fn from(source: StoreError) -> Self
Converts to this type from the input type.
Source§impl From<StoreError> for StoreDeviceExclusionError
impl From<StoreError> for StoreDeviceExclusionError
Source§fn from(source: StoreError) -> Self
fn from(source: StoreError) -> Self
Converts to this type from the input type.
Source§impl From<StoreError> for StoreReclaimError
impl From<StoreError> for StoreReclaimError
Source§fn from(source: StoreError) -> Self
fn from(source: StoreError) -> Self
Converts to this type from the input type.
Source§impl From<StoreError> for StoreRegistrationError
impl From<StoreError> for StoreRegistrationError
Source§fn from(source: StoreError) -> Self
fn from(source: StoreError) -> Self
Converts to this type from the input type.
Source§impl From<StoreError> for SyncError
impl From<StoreError> for SyncError
Source§fn from(error: StoreError) -> Self
fn from(error: StoreError) -> Self
Converts to this type from the input type.
Source§impl From<StoreError> for TestError
impl From<StoreError> for TestError
Source§fn from(source: StoreError) -> Self
fn from(source: StoreError) -> Self
Converts to this type from the input type.
Source§impl From<StoreObjectError> for StoreError
impl From<StoreObjectError> for StoreError
Source§fn from(source: StoreObjectError) -> Self
fn from(source: StoreObjectError) -> Self
Converts to this type from the input type.
Source§impl From<StoreProtocolError> for StoreError
impl From<StoreProtocolError> for StoreError
Source§fn from(source: StoreProtocolError) -> Self
fn from(source: StoreProtocolError) -> Self
Converts to this type from the input type.
Source§impl From<StorePullError> for StoreError
impl From<StorePullError> for StoreError
Source§fn from(source: StorePullError) -> Self
fn from(source: StorePullError) -> Self
Converts to this type from the input type.
Source§impl From<StoreWriterAuthorizationError> for StoreError
impl From<StoreWriterAuthorizationError> for StoreError
Source§fn from(error: StoreWriterAuthorizationError) -> Self
fn from(error: StoreWriterAuthorizationError) -> Self
Converts to this type from the input type.
Source§impl From<SyncCycleFailure> for StoreError
impl From<SyncCycleFailure> for StoreError
Source§fn from(error: SyncCycleFailure) -> Self
fn from(error: SyncCycleFailure) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StoreError
impl !RefUnwindSafe for StoreError
impl Send for StoreError
impl Sync for StoreError
impl Unpin for StoreError
impl UnsafeUnpin for StoreError
impl !UnwindSafe for StoreError
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.