From b388bc727ba9739ad6a034d1981d38ee4e350bec Mon Sep 17 00:00:00 2001 From: h7x4 Date: Mon, 8 Dec 2025 04:07:20 +0900 Subject: [PATCH] commands: document module --- src/commands.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/commands.rs b/src/commands.rs index 45f3885e..0e7eca7a 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -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;