pub enum CreateAccountError {
AlreadyExists,
Storage(StoreError),
}Expand description
Refusals from account creation (review finding GL-7): creation is never destructive and never silently idempotent — recreating an existing account is a surfaced error in every backend, because an overwrite would reset balances/fencing under live leases and a silent no-op would hide operator mistakes. Resetting an account is a deliberate, separate workflow, not a create.
Variants§
AlreadyExists
An account with this id already exists. It is left untouched.
Storage(StoreError)
A backend failure unrelated to domain rules; see StoreError.
Trait Implementations§
Source§impl Clone for CreateAccountError
impl Clone for CreateAccountError
Source§impl Debug for CreateAccountError
impl Debug for CreateAccountError
Source§impl Display for CreateAccountError
impl Display for CreateAccountError
impl Eq for CreateAccountError
Source§impl Error for CreateAccountError
impl Error for CreateAccountError
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 CreateAccountError
impl PartialEq for CreateAccountError
impl StructuralPartialEq for CreateAccountError
Auto Trait Implementations§
impl Freeze for CreateAccountError
impl RefUnwindSafe for CreateAccountError
impl Send for CreateAccountError
impl Sync for CreateAccountError
impl Unpin for CreateAccountError
impl UnsafeUnpin for CreateAccountError
impl UnwindSafe for CreateAccountError
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