azalea_brigadier/result_consumer.rs
1use std::rc::Rc;
2
3use crate::context::CommandContext;
4
5pub trait ResultConsumer<S, R> {
6 fn on_command_complete(&self, context: Rc<CommandContext<S, R>>, success: bool, result: i32);
7}
8
9pub struct DefaultResultConsumer;
10impl<S, R> ResultConsumer<S, R> for DefaultResultConsumer {
11 fn on_command_complete(
12 &self,
13 _context: Rc<CommandContext<S, R>>,
14 _success: bool,
15 _result: i32,
16 ) {
17 }
18}