commands: document module

This commit is contained in:
2025-12-08 04:07:20 +09:00
parent 9f859e1df1
commit b388bc727b

View File

@@ -1,3 +1,12 @@
//! Module containing the basic building blocks, definitions and helpers
//! for implementing an MPD command. A command consists of a pair of serializers
//! and parsers for both the request and the corresponding response, as well as
//! the command name used to identify the command.
//!
//! Each command is modelled as a struct implementing the [`Command`] trait,
//! which in turn uses the [`CommandRequest`] and [`CommandResponse`] traits
//! to define the request and response types respectively.
use crate::{request_tokenizer::RequestTokenizer, response_tokenizer::ResponseAttributes};
mod audio_output_devices;