pub trait AccountForceLocker: AccessControllable {
// Required methods
fn is_account_locked(&self, account_id: &AccountId) -> bool;
fn force_lock_account(&mut self, account_id: AccountId) -> bool;
fn force_unlock_account(&mut self, account_id: &AccountId) -> bool;
}
Required Methods§
Sourcefn is_account_locked(&self, account_id: &AccountId) -> bool
fn is_account_locked(&self, account_id: &AccountId) -> bool
Returns whether the givenaccount_id
is locked
Sourcefn force_lock_account(&mut self, account_id: AccountId) -> bool
fn force_lock_account(&mut self, account_id: AccountId) -> bool
Locks given account_id
from modifying its own state, including
token balances.
Returns false
if the account was already in locked state.
Attached deposit of 1yN is required for security purposes.
NOTE: this still allows for force withdrawals/transfers
Sourcefn force_unlock_account(&mut self, account_id: &AccountId) -> bool
fn force_unlock_account(&mut self, account_id: &AccountId) -> bool
Unlocks given account_id
.
Returns false
if the account wasn’t in locked state.
Attached deposit of 1yN is required for security purposes.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.