pub struct CoreService<C>where
C: Core,{ /* private fields */ }
Expand description
Service that receives CoreRequest
values,
calls a Core
and responds with CoreResponse
.
Implementations§
Trait Implementations§
Source§impl<C> Clone for CoreService<C>where
C: Core,
impl<C> Clone for CoreService<C>where
C: Core,
Source§impl<C> Service<CoreRequest> for CoreService<C>where
C: Core + 'static,
impl<C> Service<CoreRequest> for CoreService<C>where
C: Core + 'static,
Source§type Response = ServiceResponse<CoreResponse>
type Response = ServiceResponse<CoreResponse>
Responses given by the service.
Source§type Future = Pin<Box<dyn Future<Output = Result<ServiceResponse<CoreResponse>, Box<dyn Error + Sync + Send>>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<ServiceResponse<CoreResponse>, Box<dyn Error + Sync + Send>>> + Send>>
The future response value.
Auto Trait Implementations§
impl<C> Freeze for CoreService<C>
impl<C> RefUnwindSafe for CoreService<C>where
C: RefUnwindSafe,
impl<C> Send for CoreService<C>
impl<C> Sync for CoreService<C>
impl<C> Unpin for CoreService<C>
impl<C> UnwindSafe for CoreService<C>where
C: RefUnwindSafe,
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