moover_rust/src/types.rs

6 lines
207 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
2024-10-06 14:53:12 +00:00
pub type Context<'a> = poise::Context<'a, (), Error>;