pub enum OwnerPromotionError {
Show 20 variants
Database(DbError),
Protocol(String),
Storage(StorageError),
Store(Box<StoreError>),
WriterAuthorization(Box<StoreWriterAuthorizationError>),
StorePull(Box<StorePullError>),
MembershipMutation(Box<MembershipMutationError>),
AnchoredChain(Box<AnchoredChainError>),
StoreObject(StoreObjectError),
PreparedCommit(PreparedCommitError),
MembershipPreparation(MembershipPreparationError),
Journal(OwnerPromotionJournalError),
StoreProtocol(StoreProtocolError),
Membership(MembershipError),
Key(KeyError),
Encryption(EncryptionError),
RequestNotActivated,
EncryptionRequired,
NotFound(OwnerPromotionId),
Stale(Box<OwnerPromotionStaleReason>),
}Variants§
Database(DbError)
Protocol(String)
Storage(StorageError)
Store(Box<StoreError>)
WriterAuthorization(Box<StoreWriterAuthorizationError>)
StorePull(Box<StorePullError>)
MembershipMutation(Box<MembershipMutationError>)
AnchoredChain(Box<AnchoredChainError>)
StoreObject(StoreObjectError)
PreparedCommit(PreparedCommitError)
MembershipPreparation(MembershipPreparationError)
Journal(OwnerPromotionJournalError)
StoreProtocol(StoreProtocolError)
Membership(MembershipError)
Key(KeyError)
Encryption(EncryptionError)
RequestNotActivated
EncryptionRequired
NotFound(OwnerPromotionId)
Stale(Box<OwnerPromotionStaleReason>)
Trait Implementations§
Source§impl Debug for OwnerPromotionError
impl Debug for OwnerPromotionError
Source§impl Display for OwnerPromotionError
impl Display for OwnerPromotionError
Source§impl Error for OwnerPromotionError
impl Error for OwnerPromotionError
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 OwnerPromotionError
impl From<AnchoredChainError> for OwnerPromotionError
Source§fn from(error: AnchoredChainError) -> Self
fn from(error: AnchoredChainError) -> Self
Converts to this type from the input type.
Source§impl From<DbError> for OwnerPromotionError
impl From<DbError> for OwnerPromotionError
Source§impl From<EncryptionError> for OwnerPromotionError
impl From<EncryptionError> for OwnerPromotionError
Source§fn from(source: EncryptionError) -> Self
fn from(source: EncryptionError) -> Self
Converts to this type from the input type.
Source§impl From<KeyError> for OwnerPromotionError
impl From<KeyError> for OwnerPromotionError
Source§impl From<MembershipError> for OwnerPromotionError
impl From<MembershipError> for OwnerPromotionError
Source§fn from(source: MembershipError) -> Self
fn from(source: MembershipError) -> Self
Converts to this type from the input type.
Source§impl From<MembershipMutationError> for OwnerPromotionError
impl From<MembershipMutationError> for OwnerPromotionError
Source§fn from(error: MembershipMutationError) -> Self
fn from(error: MembershipMutationError) -> Self
Converts to this type from the input type.
Source§impl From<MembershipPreparationError> for OwnerPromotionError
impl From<MembershipPreparationError> for OwnerPromotionError
Source§fn from(source: MembershipPreparationError) -> Self
fn from(source: MembershipPreparationError) -> Self
Converts to this type from the input type.
Source§impl From<OwnerPromotionError> for SyncError
impl From<OwnerPromotionError> for SyncError
Source§fn from(error: OwnerPromotionError) -> Self
fn from(error: OwnerPromotionError) -> Self
Converts to this type from the input type.
Source§impl From<OwnerPromotionError> for TestError
impl From<OwnerPromotionError> for TestError
Source§fn from(source: OwnerPromotionError) -> Self
fn from(source: OwnerPromotionError) -> Self
Converts to this type from the input type.
Source§impl From<OwnerPromotionJournalError> for OwnerPromotionError
impl From<OwnerPromotionJournalError> for OwnerPromotionError
Source§fn from(source: OwnerPromotionJournalError) -> Self
fn from(source: OwnerPromotionJournalError) -> Self
Converts to this type from the input type.
Source§impl From<PreparedCommitError> for OwnerPromotionError
impl From<PreparedCommitError> for OwnerPromotionError
Source§fn from(source: PreparedCommitError) -> Self
fn from(source: PreparedCommitError) -> Self
Converts to this type from the input type.
Source§impl From<StorageError> for OwnerPromotionError
impl From<StorageError> for OwnerPromotionError
Source§fn from(source: StorageError) -> Self
fn from(source: StorageError) -> 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<StoreObjectError> for OwnerPromotionError
impl From<StoreObjectError> for OwnerPromotionError
Source§fn from(source: StoreObjectError) -> Self
fn from(source: StoreObjectError) -> Self
Converts to this type from the input type.
Source§impl From<StoreProtocolError> for OwnerPromotionError
impl From<StoreProtocolError> for OwnerPromotionError
Source§fn from(source: StoreProtocolError) -> Self
fn from(source: StoreProtocolError) -> Self
Converts to this type from the input type.
Source§impl From<StorePullError> for OwnerPromotionError
impl From<StorePullError> for OwnerPromotionError
Source§fn from(error: StorePullError) -> Self
fn from(error: StorePullError) -> Self
Converts to this type from the input type.
Source§impl From<StoreWriterAuthorizationError> for OwnerPromotionError
impl From<StoreWriterAuthorizationError> for OwnerPromotionError
Source§fn from(error: StoreWriterAuthorizationError) -> Self
fn from(error: StoreWriterAuthorizationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OwnerPromotionError
impl !RefUnwindSafe for OwnerPromotionError
impl Send for OwnerPromotionError
impl Sync for OwnerPromotionError
impl Unpin for OwnerPromotionError
impl UnsafeUnpin for OwnerPromotionError
impl !UnwindSafe for OwnerPromotionError
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.