pub struct VariantService2<V1, V2, V1R, V2R> { /* private fields */ }
Trait Implementations§
source§impl<V1, V2, V1R, V2R> Service<Variant2<V1R, V2R>> for VariantService2<V1, V2, V1R, V2R>
impl<V1, V2, V1R, V2R> Service<Variant2<V1R, V2R>> for VariantService2<V1, V2, V1R, V2R>
source§type Error = <V1 as Service<V1R>>::Error
type Error = <V1 as Service<V1R>>::Error
Errors produced by the service when polling readiness or executing call.
source§async fn ready(&self, ctx: ServiceCtx<'_, Self>) -> Result<(), Self::Error>
async fn ready(&self, ctx: ServiceCtx<'_, Self>) -> Result<(), Self::Error>
Returns when the service is able to process requests. Read more
source§async fn call(
&self,
req: Variant2<V1R, V2R>,
ctx: ServiceCtx<'_, Self>,
) -> Result<Self::Response, Self::Error>
async fn call( &self, req: Variant2<V1R, V2R>, ctx: ServiceCtx<'_, Self>, ) -> Result<Self::Response, Self::Error>
Process the request and return the response asynchronously. Read more
Auto Trait Implementations§
impl<V1, V2, V1R, V2R> Freeze for VariantService2<V1, V2, V1R, V2R>
impl<V1, V2, V1R, V2R> RefUnwindSafe for VariantService2<V1, V2, V1R, V2R>
impl<V1, V2, V1R, V2R> Send for VariantService2<V1, V2, V1R, V2R>
impl<V1, V2, V1R, V2R> Sync for VariantService2<V1, V2, V1R, V2R>
impl<V1, V2, V1R, V2R> Unpin for VariantService2<V1, V2, V1R, V2R>
impl<V1, V2, V1R, V2R> UnwindSafe for VariantService2<V1, V2, V1R, V2R>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Svc, Req> IntoService<Svc, Req> for Svcwhere
Svc: Service<Req>,
impl<Svc, Req> IntoService<Svc, Req> for Svcwhere
Svc: Service<Req>,
source§fn into_service(self) -> Svc
fn into_service(self) -> Svc
Convert to a
Service