Struct mpc_websocket::services::ServiceHandler
source · pub struct ServiceHandler;
Expand description
Service for replying to client requests.
Trait Implementations§
source§impl Service for ServiceHandler
impl Service for ServiceHandler
§type Data = (usize, Arc<RwLock<State>>, Arc<Mutex<Option<Notification>>>)
type Data = (usize, Arc<RwLock<State>>, Arc<Mutex<Option<Notification>>>)
Type of the user data for this service.
source§fn handle<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
req: &'life1 Request,
ctx: &'life2 Self::Data
) -> Pin<Box<dyn Future<Output = Result<Option<Response>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn handle<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, req: &'life1 Request, ctx: &'life2 Self::Data ) -> Pin<Box<dyn Future<Output = Result<Option<Response>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,
See Service for more information.