pub enum PreparedCommitError {
Invariant(String),
Storage(StorageError),
StoreObject(StoreObjectError),
Protocol(StoreProtocolError),
Membership(MembershipPreparationError),
Json {
operation: &'static str,
source: Error,
},
RemoteObject(RemoteObjectRecordError),
}Expand description
A prepared commit whose parts contradict each other or cannot form valid remote-object records. Workflow errors wrap it at the operation boundary.
Variants§
Invariant(String)
Storage(StorageError)
StoreObject(StoreObjectError)
Protocol(StoreProtocolError)
Membership(MembershipPreparationError)
Json
RemoteObject(RemoteObjectRecordError)
Trait Implementations§
Source§impl Debug for PreparedCommitError
impl Debug for PreparedCommitError
Source§impl Display for PreparedCommitError
impl Display for PreparedCommitError
Source§impl Error for PreparedCommitError
impl Error for PreparedCommitError
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<MembershipPreparationError> for PreparedCommitError
impl From<MembershipPreparationError> for PreparedCommitError
Source§fn from(source: MembershipPreparationError) -> Self
fn from(source: MembershipPreparationError) -> Self
Converts to this type from the input type.
Source§impl From<PreparedCommitError> for OwnerPromotionJournalError
impl From<PreparedCommitError> for OwnerPromotionJournalError
Source§fn from(source: PreparedCommitError) -> Self
fn from(source: PreparedCommitError) -> Self
Converts to this type from the input type.
Source§impl From<PreparedCommitError> for StoreDeviceExclusionJournalError
impl From<PreparedCommitError> for StoreDeviceExclusionJournalError
Source§fn from(source: PreparedCommitError) -> Self
fn from(source: PreparedCommitError) -> Self
Converts to this type from the input type.
Source§impl From<RemoteObjectRecordError> for PreparedCommitError
impl From<RemoteObjectRecordError> for PreparedCommitError
Source§fn from(source: RemoteObjectRecordError) -> Self
fn from(source: RemoteObjectRecordError) -> Self
Converts to this type from the input type.
Source§impl From<StorageError> for PreparedCommitError
impl From<StorageError> for PreparedCommitError
Source§fn from(source: StorageError) -> Self
fn from(source: StorageError) -> Self
Converts to this type from the input type.
Source§impl From<StoreObjectError> for PreparedCommitError
impl From<StoreObjectError> for PreparedCommitError
Source§fn from(source: StoreObjectError) -> Self
fn from(source: StoreObjectError) -> 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.
Auto Trait Implementations§
impl Freeze for PreparedCommitError
impl !RefUnwindSafe for PreparedCommitError
impl Send for PreparedCommitError
impl Sync for PreparedCommitError
impl Unpin for PreparedCommitError
impl UnsafeUnpin for PreparedCommitError
impl !UnwindSafe for PreparedCommitError
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