pub struct ServiceHandler;
Expand description
Service for replying to client requests.
Trait Implementations§
Source§impl Service for ServiceHandler
impl Service for ServiceHandler
Source§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.
Auto Trait Implementations§
impl Freeze for ServiceHandler
impl RefUnwindSafe for ServiceHandler
impl Send for ServiceHandler
impl Sync for ServiceHandler
impl Unpin for ServiceHandler
impl UnwindSafe for ServiceHandler
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more