libunftp/server/controlchan/commands/
syst.rs1use crate::{
13 auth::UserDetail,
14 server::controlchan::{
15 Reply, ReplyCode,
16 error::ControlChanError,
17 handler::{CommandContext, CommandHandler},
18 },
19 storage::{Metadata, StorageBackend},
20};
21use async_trait::async_trait;
22
23#[derive(Debug)]
24pub struct Syst;
25
26#[async_trait]
27impl<Storage, User> CommandHandler<Storage, User> for Syst
28where
29 User: UserDetail + 'static,
30 Storage: StorageBackend<User> + 'static,
31 Storage::Metadata: Metadata,
32{
33 #[tracing_attributes::instrument]
34 async fn handle(&self, _args: CommandContext<Storage, User>) -> Result<Reply, ControlChanError> {
35 Ok(Reply::new(ReplyCode::SystemType, "UNIX Type: L8")) }
37}