on_message

Attribute Macro on_message 

Source
#[on_message]
Expand description

A method wrapped with #[on_message] macro is called whenever a specified protobuf message appears in replay.

ยงExamples

#[on_message]
fn message(&mut self, ctx: &Context, message: &CCitadelUserMsgChatMsg) -> ObserverResult {
    Ok(())
}
#[on_message]
fn message(&mut self, message: CCitadelUserMsgChatMsg) -> ObserverResult {
    Ok(())
}