From 818f89859fabd3fbb0948d9cf5e1f8da84d1e95d Mon Sep 17 00:00:00 2001 From: h7x4 Date: Mon, 8 Dec 2025 13:07:11 +0900 Subject: [PATCH] commands: force external users to interact with requests and responses through `Command` trait --- src/commands.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands.rs b/src/commands.rs index 38b2d0f1..5b6f26aa 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -48,7 +48,7 @@ use thiserror::Error; use tokio::io::{AsyncBufReadExt, AsyncRead, AsyncWrite, AsyncWriteExt, BufReader}; /// A trait modelling a single MPD command request. -pub trait CommandRequest +pub(crate) trait CommandRequest where Self: Sized, { @@ -102,7 +102,7 @@ where } /// A trait modelling a single MPD command response. -pub trait CommandResponse +pub(crate) trait CommandResponse where Self: Sized, {