diff options
Diffstat (limited to 'exes/cache/src/managers/mod.rs')
| -rw-r--r-- | exes/cache/src/managers/mod.rs | 23 | 
1 files changed, 23 insertions, 0 deletions
diff --git a/exes/cache/src/managers/mod.rs b/exes/cache/src/managers/mod.rs new file mode 100644 index 0000000..370cda6 --- /dev/null +++ b/exes/cache/src/managers/mod.rs @@ -0,0 +1,23 @@ +use std::pin::Pin; +use twilight_model::gateway::event::DispatchEvent; +use std::future::Future; + +use crate::CacheSourcedEvents; + +pub mod channels; +pub mod guilds; +pub mod guild_schedules; +pub mod stage_instances; +pub mod integrations; +pub mod members; +pub mod bans; +pub mod reactions; +pub mod messages; +pub mod threads; +pub mod invites; +pub mod roles; +pub mod automoderation; + +pub trait CacheManager { +    fn handle(&self, event: DispatchEvent) -> Pin<Box<dyn Future<Output = CacheSourcedEvents>>>; +}  | 
