pub enum OperationLedgerError {
Cancelled(OperationCancelled),
ResourceLimitExceeded(OperationResourceLimitExceeded),
ArithmeticOverflow {
id: &'static str,
phase: OperationPhase,
resource_phase: &'static str,
actual: u64,
maximum: u64,
provenance: OperationResourceProvenance,
},
}Expand description
Sticky terminal failure shared by operation controls and target-owned resource adapters.
Variants§
Cancelled(OperationCancelled)
ResourceLimitExceeded(OperationResourceLimitExceeded)
ArithmeticOverflow
Trait Implementations§
Source§impl Clone for OperationLedgerError
impl Clone for OperationLedgerError
Source§impl Debug for OperationLedgerError
impl Debug for OperationLedgerError
Source§impl Display for OperationLedgerError
impl Display for OperationLedgerError
impl Eq for OperationLedgerError
Source§impl Error for OperationLedgerError
impl Error for OperationLedgerError
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<OperationCancelled> for OperationLedgerError
impl From<OperationCancelled> for OperationLedgerError
Source§fn from(source: OperationCancelled) -> Self
fn from(source: OperationCancelled) -> Self
Converts to this type from the input type.
Source§impl From<OperationResourceLimitExceeded> for OperationLedgerError
impl From<OperationResourceLimitExceeded> for OperationLedgerError
Source§fn from(source: OperationResourceLimitExceeded) -> Self
fn from(source: OperationResourceLimitExceeded) -> Self
Converts to this type from the input type.
Source§impl PartialEq for OperationLedgerError
impl PartialEq for OperationLedgerError
impl StructuralPartialEq for OperationLedgerError
Auto Trait Implementations§
impl Freeze for OperationLedgerError
impl RefUnwindSafe for OperationLedgerError
impl Send for OperationLedgerError
impl Sync for OperationLedgerError
impl Unpin for OperationLedgerError
impl UnsafeUnpin for OperationLedgerError
impl UnwindSafe for OperationLedgerError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.