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§

source

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.

Implementors§