Struct ntex_util::services::variant::VariantService2
source · 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>
§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§fn poll_ready(&self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
fn poll_ready(&self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
Returns
Ready when the service is able to process requests. Read moresource§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> 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<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