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§

source

fn on_removed(idty_index: &T::IdtyIndex) -> Weight

Called when an identity is removed.

source

fn on_revoked(idty_index: &T::IdtyIndex) -> Weight

Called when an identity is revoked.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T: Config> OnRemoveIdty<T> for ()

source§

fn on_removed(_idty_index: &T::IdtyIndex) -> Weight

source§

fn on_revoked(_idty_index: &T::IdtyIndex) -> Weight

Implementors§