commands: force external users to interact with requests and responses through Command trait
This commit is contained in:
@@ -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,
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user