Trait pallet_identity::traits::OnRemoveIdty
source · pub trait OnRemoveIdty<T: Config> {
// Required methods
fn on_removed(idty_index: &T::IdtyIndex) -> Weight;
fn on_revoked(idty_index: &T::IdtyIndex) -> Weight;
}
Expand description
A trait defining behavior for handling removed identities. As the weight accounting can be complicated it should be done at the handler level.
Required Methods§
sourcefn on_removed(idty_index: &T::IdtyIndex) -> Weight
fn on_removed(idty_index: &T::IdtyIndex) -> Weight
Called when an identity is removed.
sourcefn on_revoked(idty_index: &T::IdtyIndex) -> Weight
fn on_revoked(idty_index: &T::IdtyIndex) -> Weight
Called when an identity is revoked.
Object Safety§
This trait is not object safe.