pub enum AccountPatchError {
InvalidModeTransition {
from: AccountMode,
to: AccountMode,
},
InvalidSlotTransition {
from: Slot,
to: Slot,
},
}Expand description
Failure to apply an account lifecycle or ordering patch.
Variants§
InvalidModeTransition
The requested account mode transition is not part of the lifecycle.
InvalidSlotTransition
The requested slot regresses or fails the mode pair’s advancement requirement.
Trait Implementations§
Source§impl Clone for AccountPatchError
impl Clone for AccountPatchError
Source§fn clone(&self) -> AccountPatchError
fn clone(&self) -> AccountPatchError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AccountPatchError
Source§impl Debug for AccountPatchError
impl Debug for AccountPatchError
Source§impl Display for AccountPatchError
impl Display for AccountPatchError
impl Eq for AccountPatchError
Source§impl Error for AccountPatchError
impl Error for AccountPatchError
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 AccountPatchError
impl PartialEq for AccountPatchError
impl StructuralPartialEq for AccountPatchError
Auto Trait Implementations§
impl Freeze for AccountPatchError
impl RefUnwindSafe for AccountPatchError
impl Send for AccountPatchError
impl Sync for AccountPatchError
impl Unpin for AccountPatchError
impl UnsafeUnpin for AccountPatchError
impl UnwindSafe for AccountPatchError
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