async fn dispatch(
cmd: &Command,
db: &DB,
server_start: Instant,
session: &Arc<Mutex<AdminSession>>,
shutdown_tx: &Sender<bool>,
)Expand description
Dispatches the parsed command to the appropriate handler function.
ยงArguments
cmd- A reference to the parsed Command struct.db- A reference to the database connection.server_start- The instant when the server started, used for uptime calculations.session- A reference to the admin session, wrapped in Arc<Mutex<>> for thread-safe access.shutdown_tx- A watch channel sender to signal server shutdown.