use std::marker::PhantomData; use peace::cfg::{OpCheckStatus, OpCtx, State}; use crate::{ ShSyncCmdData, ShSyncCmdError, ShSyncCmdExecutionRecord, ShSyncCmdStateDiff, ShSyncCmdSyncStatus, }; /// ApplyFns for the command to execute. #[derive(Debug)] pub struct ShSyncCmdApplyFns(PhantomData); impl ShSyncCmdApplyFns where Id: Send + Sync + 'static, { pub async fn apply_check( _sh_sync_cmd_data: ShSyncCmdData<'_, Id>, _file_state_current: &State, _file_state_desired: &State, _diff: &ShSyncCmdStateDiff, ) -> Result { todo!(); } pub async fn apply_dry( _op_ctx: OpCtx<'_>, _sh_sync_cmd_data: ShSyncCmdData<'_, Id>, _state: &State, _file_state_desired: &State, _diff: &ShSyncCmdStateDiff, ) -> Result, ShSyncCmdError> { todo!() } pub async fn apply( _op_ctx: OpCtx<'_>, _sh_sync_cmd_data: ShSyncCmdData<'_, Id>, _state: &State, _file_state_desired: &State, _diff: &ShSyncCmdStateDiff, ) -> Result, ShSyncCmdError> { todo!(); } }