1
use crate::commands::{
2
    Command, Request, RequestParserResult, ResponseAttributes, ResponseParserError,
3
};
4

            
5
pub struct Commands;
6

            
7
impl Command for Commands {
8
    type Response = ();
9
    const COMMAND: &'static str = "commands";
10

            
11
    fn parse_request(mut parts: std::str::SplitWhitespace<'_>) -> RequestParserResult<'_> {
12
        debug_assert!(parts.next().is_none());
13
        Ok((Request::Commands, ""))
14
    }
15

            
16
    fn parse_response(
17
        parts: ResponseAttributes<'_>,
18
    ) -> Result<Self::Response, ResponseParserError> {
19
        unimplemented!()
20
    }
21
}