pub struct VariantService2<V1, V2, V1R, V2R> { /* private fields */ }Trait Implementations§
Source§impl<V1, V2, V1R, V2R> Clone for VariantService2<V1, V2, V1R, V2R>
impl<V1, V2, V1R, V2R> Clone for VariantService2<V1, V2, V1R, V2R>
Source§fn clone(&self) -> VariantService2<V1, V2, V1R, V2R>
fn clone(&self) -> VariantService2<V1, V2, V1R, V2R>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<V1, V2, V1R, V2R> Debug for VariantService2<V1, V2, V1R, V2R>
impl<V1, V2, V1R, V2R> Debug for VariantService2<V1, V2, V1R, V2R>
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<'_, VariantService2<V1, V2, V1R, V2R>>,
) -> Result<(), <VariantService2<V1, V2, V1R, V2R> as Service<Variant2<V1R, V2R>>>::Error>
async fn ready( &self, ctx: ServiceCtx<'_, VariantService2<V1, V2, V1R, V2R>>, ) -> Result<(), <VariantService2<V1, V2, V1R, V2R> as Service<Variant2<V1R, V2R>>>::Error>
Returns when the service is able to process requests. Read more
Source§fn poll(
&self,
cx: &mut Context<'_>,
) -> Result<(), <VariantService2<V1, V2, V1R, V2R> as Service<Variant2<V1R, V2R>>>::Error>
fn poll( &self, cx: &mut Context<'_>, ) -> Result<(), <VariantService2<V1, V2, V1R, V2R> as Service<Variant2<V1R, V2R>>>::Error>
Polls service from the current task. Read more
Source§async fn call(
&self,
req: Variant2<V1R, V2R>,
ctx: ServiceCtx<'_, VariantService2<V1, V2, V1R, V2R>>,
) -> Result<<VariantService2<V1, V2, V1R, V2R> as Service<Variant2<V1R, V2R>>>::Response, <VariantService2<V1, V2, V1R, V2R> as Service<Variant2<V1R, V2R>>>::Error>
async fn call( &self, req: Variant2<V1R, V2R>, ctx: ServiceCtx<'_, VariantService2<V1, V2, V1R, V2R>>, ) -> Result<<VariantService2<V1, V2, V1R, V2R> as Service<Variant2<V1R, V2R>>>::Response, <VariantService2<V1, V2, V1R, V2R> as Service<Variant2<V1R, V2R>>>::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§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