Struct llmvm_protocol::service::BackendService
source · 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,
§type Response = ServiceResponse<BackendResponse>
type Response = ServiceResponse<BackendResponse>
Responses given by the service.
§type Future = Pin<Box<dyn Future<Output = Result<ServiceResponse<BackendResponse>, Box<dyn Error + Sync + Send, Global>>> + Send, Global>>
type Future = Pin<Box<dyn Future<Output = Result<ServiceResponse<BackendResponse>, Box<dyn Error + Sync + Send, Global>>> + Send, Global>>
The future response value.
Auto Trait Implementations§
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