pub enum ApprovalErrorTestOnly {
NotReleased,
ActionMismatch,
RootMismatch,
SlotFilled,
Reused,
Incomplete,
Expired,
AlreadyExecuted,
SetInvalid,
SetUnknown,
SetAlreadyExists,
InvalidSlot,
}Expand description
The ledger’s refusals (Go ErrApproval*).
Variants§
NotReleased
The approval is not a released allow.
ActionMismatch
The approval does not bind this approval set’s action.
RootMismatch
The approval chain does not end at the slot’s pinned root.
SlotFilled
The slot already holds a different approval.
Reused
The approval is already recorded in another approval set.
Incomplete
The approval set is missing a released approval.
Expired
An approval is past its release deadline.
AlreadyExecuted
The approval set already executed.
SetInvalid
The approval set is invalid.
SetUnknown
The approval set is unknown.
SetAlreadyExists
The approval set is already open.
InvalidSlot
The slot is not 0 or 1.
Implementations§
Trait Implementations§
Source§impl Clone for ApprovalErrorTestOnly
impl Clone for ApprovalErrorTestOnly
impl Copy for ApprovalErrorTestOnly
Source§impl Debug for ApprovalErrorTestOnly
impl Debug for ApprovalErrorTestOnly
Source§impl Display for ApprovalErrorTestOnly
impl Display for ApprovalErrorTestOnly
impl Eq for ApprovalErrorTestOnly
Source§impl Error for ApprovalErrorTestOnly
impl Error for ApprovalErrorTestOnly
1.30.0 · 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 PartialEq for ApprovalErrorTestOnly
impl PartialEq for ApprovalErrorTestOnly
impl StructuralPartialEq for ApprovalErrorTestOnly
Auto Trait Implementations§
impl Forget for ApprovalErrorTestOnly
impl Freeze for ApprovalErrorTestOnly
impl RefUnwindSafe for ApprovalErrorTestOnly
impl Send for ApprovalErrorTestOnly
impl Sync for ApprovalErrorTestOnly
impl Unpin for ApprovalErrorTestOnly
impl UnsafeUnpin for ApprovalErrorTestOnly
impl UnwindSafe for ApprovalErrorTestOnly
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