commands: force external users to interact with requests and responses through Command trait

This commit is contained in:
2025-12-08 13:07:11 +09:00
parent f2e2eb271a
commit 818f89859f

View File

@@ -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,
{