Using Rust to write an asterisk module