23 lines
571 B
Rust
23 lines
571 B
Rust
use crate::{
|
|
commands::{Command, RequestParserResult, ResponseAttributes, ResponseParserError},
|
|
Request,
|
|
};
|
|
|
|
pub struct Playlist;
|
|
|
|
impl Command for Playlist {
|
|
type Response = ();
|
|
const COMMAND: &'static str = "playlist";
|
|
|
|
fn parse_request(mut parts: std::str::SplitWhitespace<'_>) -> RequestParserResult<'_> {
|
|
debug_assert!(parts.next().is_none());
|
|
Ok((Request::Playlist, ""))
|
|
}
|
|
|
|
fn parse_response(
|
|
_parts: ResponseAttributes<'_>,
|
|
) -> Result<Self::Response, ResponseParserError> {
|
|
unimplemented!()
|
|
}
|
|
}
|