moover_rust/src/types.rs

6 lines
210 B
Rust
Raw Normal View History

// pub struct Data {}
pub type Error = Box<dyn std::error::Error + Send + Sync>;
// replace () with Data if you ever need to store some additional data
// pub type Context<'a> = poise::Context<'a, (), Error>;