Trait pallet_offences::traits::OnOffenceHandler
source · pub trait OnOffenceHandler<Reporter, Offender, Res> {
// Required method
fn on_offence(
offenders: &[OffenceDetails<Reporter, Offender>],
slash_strategy: SlashStrategy,
session: SessionIndex
) -> Res;
}
Expand description
Trait for handling offences.
Required Methods§
sourcefn on_offence(
offenders: &[OffenceDetails<Reporter, Offender>],
slash_strategy: SlashStrategy,
session: SessionIndex
) -> Res
fn on_offence( offenders: &[OffenceDetails<Reporter, Offender>], slash_strategy: SlashStrategy, session: SessionIndex ) -> Res
Handle an offence committed by one or more offenders.
Object Safety§
This trait is not object safe.