Skip to main content

MessageHandler

Trait MessageHandler 

Source
pub trait MessageHandler: Send + Sync {
    // Required method
    fn handle(&self, level: MsgLevel, code: u32, msg: &str);
}
Expand description

Trait for receiving diagnostic messages from the codec.

Implement this to redirect messages to a custom logging framework.

Required Methods§

Source

fn handle(&self, level: MsgLevel, code: u32, msg: &str)

Handle a diagnostic message.

Implementors§