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