diff options
| author | acdenisSK <[email protected]> | 2017-09-12 14:57:52 +0200 |
|---|---|---|
| committer | acdenisSK <[email protected]> | 2017-09-12 14:59:21 +0200 |
| commit | bc3491cf3a70a02ce5725e66887746567ae4660c (patch) | |
| tree | dc1086bfae3f2cb56ab8ea89e13cba8bf46c0513 /src/cache/cache_update.rs | |
| parent | Copy some methods from Command to Group (#164) (diff) | |
| download | serenity-bc3491cf3a70a02ce5725e66887746567ae4660c.tar.xz serenity-bc3491cf3a70a02ce5725e66887746567ae4660c.zip | |
Revamp `CacheEventsImpl`
Diffstat (limited to 'src/cache/cache_update.rs')
| -rw-r--r-- | src/cache/cache_update.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cache/cache_update.rs b/src/cache/cache_update.rs new file mode 100644 index 0000000..a05cc3d --- /dev/null +++ b/src/cache/cache_update.rs @@ -0,0 +1,7 @@ +use super::Cache; + +pub(crate) trait CacheUpdate { + type Output; + + fn update(&mut self, &mut Cache) -> Option<Self::Output>; +} |