15 lines
279 B
Rust
15 lines
279 B
Rust
|
use std::fmt;
|
||
|
|
||
|
/// Commands, without the tag part.
|
||
|
pub enum Command {
|
||
|
Capability,
|
||
|
}
|
||
|
|
||
|
impl fmt::Display for Command {
|
||
|
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||
|
match self {
|
||
|
Command::Capability => write!(f, "CAPABILITY"),
|
||
|
}
|
||
|
}
|
||
|
}
|