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