aboutsummaryrefslogtreecommitdiff
path: root/src/ext/framework/command.rs
diff options
context:
space:
mode:
authorAustin Hellyer <[email protected]>2016-09-19 09:00:03 -0700
committerAustin Hellyer <[email protected]>2016-10-18 11:14:27 -0700
commit8fc8c81403c3daa187ba96a7d488a64db21463bf (patch)
tree81bc4890c28b08ce806f69084617066bce863c2d /src/ext/framework/command.rs
downloadserenity-8fc8c81403c3daa187ba96a7d488a64db21463bf.tar.xz
serenity-8fc8c81403c3daa187ba96a7d488a64db21463bf.zip
Initial commit
Diffstat (limited to 'src/ext/framework/command.rs')
-rw-r--r--src/ext/framework/command.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ext/framework/command.rs b/src/ext/framework/command.rs
new file mode 100644
index 0000000..31b2520
--- /dev/null
+++ b/src/ext/framework/command.rs
@@ -0,0 +1,7 @@
+use std::sync::Arc;
+use ::client::Context;
+use ::model::Message;
+
+pub type Command = Fn(Context, Message) + Send + Sync;
+#[doc(hidden)]
+pub type InternalCommand = Arc<Command>;