1 2 3 4 5 6 7 8 9 10 11 12
use crate::channel::AgiChannel; use crate::request::AgiRequest; /// trait for handling incoming AGI connections pub trait AgiHandler: Send + Sync + 'static { /// handle an AGI session fn handle( &self, request: AgiRequest, channel: AgiChannel, ) -> impl std::future::Future<Output = crate::error::Result<()>> + Send; }