//! Application state for the mixtape server.
usestd::sync::Arc;usemixtape_core::Agent;/// Shared application state containing the agent.
////// This state is cloned for each request handler and provides
/// access to the shared agent instance.
#[derive(Clone)]pubstructAppState{/// The shared agent instance.
pubagent:Arc<Agent>,
}implAppState{/// Create new application state from an Arc<Agent>.
pubfnfrom_arc(agent:Arc<Agent>)->Self{Self{ agent }}}