pub trait Command: Sealed { }
Expand description
Trait marker denoting what can be provided to Shard::command
.
This trait exists to make it easier to determine what commands can be sent to the Discord Gateway API.
This is deliberately not implemented for Heartbeat
, Identify
, and
Resume
due to shards automatically sending them as necessary.
To send an arbitrary command to the Discord Gateway API then Shard::send
may be used.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.