pub struct VariantFactory6<V1, V1C, V2, V3, V4, V5, V6, V1R, V2R, V3R, V4R, V5R, V6R> { /* private fields */ }

Implementations§

source§

impl<V1, V1C, V2, V3, V4, V5, V6, V1R, V2R, V3R, V4R, V5R, V6R> VariantFactory6<V1, V1C, V2, V3, V4, V5, V6, V1R, V2R, V3R, V4R, V5R, V6R>
where V1: ServiceFactory<V1R, V1C>,

source

pub fn v7<V7, V7R, F>( self, factory: F ) -> VariantFactory7<V1, V1C, V2, V3, V4, V5, V6, V7, V1R, V2R, V3R, V4R, V5R, V6R, V7R>
where V7: ServiceFactory<V7R, V1C, Response = V1::Response, Error = V1::Error, InitError = V1::InitError>, F: IntoServiceFactory<V7, V7R, V1C>,

Convert to a Variant with more request types

Trait Implementations§

source§

impl<V1: Clone, V1C, V2: Clone, V3: Clone, V4: Clone, V5: Clone, V6: Clone, V1R, V2R, V3R, V4R, V5R, V6R> Clone for VariantFactory6<V1, V1C, V2, V3, V4, V5, V6, V1R, V2R, V3R, V4R, V5R, V6R>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<V1: Debug, V1C, V2: Debug, V3: Debug, V4: Debug, V5: Debug, V6: Debug, V1R, V2R, V3R, V4R, V5R, V6R> Debug for VariantFactory6<V1, V1C, V2, V3, V4, V5, V6, V1R, V2R, V3R, V4R, V5R, V6R>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<V1, V1C, V2, V3, V4, V5, V6, V1R, V2R, V3R, V4R, V5R, V6R> ServiceFactory<Variant6<V1R, V2R, V3R, V4R, V5R, V6R>, V1C> for VariantFactory6<V1, V1C, V2, V3, V4, V5, V6, V1R, V2R, V3R, V4R, V5R, V6R>
where V1: ServiceFactory<V1R, V1C>, V1C: Clone, V2: ServiceFactory<V2R, V1C, Response = V1::Response, Error = V1::Error, InitError = V1::InitError>, V3: ServiceFactory<V3R, V1C, Response = V1::Response, Error = V1::Error, InitError = V1::InitError>, V4: ServiceFactory<V4R, V1C, Response = V1::Response, Error = V1::Error, InitError = V1::InitError>, V5: ServiceFactory<V5R, V1C, Response = V1::Response, Error = V1::Error, InitError = V1::InitError>, V6: ServiceFactory<V6R, V1C, Response = V1::Response, Error = V1::Error, InitError = V1::InitError>,

§

type Response = <V1 as ServiceFactory<V1R, V1C>>::Response

Responses given by the created services.
§

type Error = <V1 as ServiceFactory<V1R, V1C>>::Error

Errors produced by the created services.
§

type Service = VariantService6<<V1 as ServiceFactory<V1R, V1C>>::Service, <V2 as ServiceFactory<V2R, V1C>>::Service, <V3 as ServiceFactory<V3R, V1C>>::Service, <V4 as ServiceFactory<V4R, V1C>>::Service, <V5 as ServiceFactory<V5R, V1C>>::Service, <V6 as ServiceFactory<V6R, V1C>>::Service, V1R, V2R, V3R, V4R, V5R, V6R>

The kind of Service created by this factory.
§

type InitError = <V1 as ServiceFactory<V1R, V1C>>::InitError

Errors potentially raised while building a service.
source§

async fn create(&self, cfg: V1C) -> Result<Self::Service, Self::InitError>

Create and return a new service value asynchronously.
source§

async fn pipeline( &self, cfg: Cfg ) -> Result<Pipeline<Self::Service>, Self::InitError>
where Self: Sized,

Create and return a new service value asynchronously and wrap into a container
source§

fn map<F, Res>( self, f: F ) -> ServiceChainFactory<MapFactory<Self, F, Req, Res, Cfg>, Req, Cfg>
where Self: Sized, F: Fn(Self::Response) -> Res + Clone,

Map this service’s output to a different type, returning a new service of the resulting type.
source§

fn map_err<F, E>( self, f: F ) -> ServiceChainFactory<MapErrFactory<Self, Req, Cfg, F, E>, Req, Cfg>
where Self: Sized, F: Fn(Self::Error) -> E + Clone,

Map this service’s error to a different error, returning a new service.
source§

fn map_init_err<F, E>( self, f: F ) -> ServiceChainFactory<MapInitErr<Self, Req, Cfg, F, E>, Req, Cfg>
where Self: Sized, F: Fn(Self::InitError) -> E + Clone,

Map this factory’s init error to a different error, returning a new service.

Auto Trait Implementations§

§

impl<V1, V1C, V2, V3, V4, V5, V6, V1R, V2R, V3R, V4R, V5R, V6R> RefUnwindSafe for VariantFactory6<V1, V1C, V2, V3, V4, V5, V6, V1R, V2R, V3R, V4R, V5R, V6R>

§

impl<V1, V1C, V2, V3, V4, V5, V6, V1R, V2R, V3R, V4R, V5R, V6R> Send for VariantFactory6<V1, V1C, V2, V3, V4, V5, V6, V1R, V2R, V3R, V4R, V5R, V6R>
where V1: Send, V1C: Send, V1R: Send, V2: Send, V2R: Send, V3: Send, V3R: Send, V4: Send, V4R: Send, V5: Send, V5R: Send, V6: Send, V6R: Send,

§

impl<V1, V1C, V2, V3, V4, V5, V6, V1R, V2R, V3R, V4R, V5R, V6R> Sync for VariantFactory6<V1, V1C, V2, V3, V4, V5, V6, V1R, V2R, V3R, V4R, V5R, V6R>
where V1: Sync, V1C: Sync, V1R: Sync, V2: Sync, V2R: Sync, V3: Sync, V3R: Sync, V4: Sync, V4R: Sync, V5: Sync, V5R: Sync, V6: Sync, V6R: Sync,

§

impl<V1, V1C, V2, V3, V4, V5, V6, V1R, V2R, V3R, V4R, V5R, V6R> Unpin for VariantFactory6<V1, V1C, V2, V3, V4, V5, V6, V1R, V2R, V3R, V4R, V5R, V6R>
where V1: Unpin, V1C: Unpin, V1R: Unpin, V2: Unpin, V2R: Unpin, V3: Unpin, V3R: Unpin, V4: Unpin, V4R: Unpin, V5: Unpin, V5R: Unpin, V6: Unpin, V6R: Unpin,

§

impl<V1, V1C, V2, V3, V4, V5, V6, V1R, V2R, V3R, V4R, V5R, V6R> UnwindSafe for VariantFactory6<V1, V1C, V2, V3, V4, V5, V6, V1R, V2R, V3R, V4R, V5R, V6R>
where V1: UnwindSafe, V1C: UnwindSafe, V1R: UnwindSafe, V2: UnwindSafe, V2R: UnwindSafe, V3: UnwindSafe, V3R: UnwindSafe, V4: UnwindSafe, V4R: UnwindSafe, V5: UnwindSafe, V5R: UnwindSafe, V6: UnwindSafe, V6R: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, Req, Cfg> IntoServiceFactory<T, Req, Cfg> for T
where T: ServiceFactory<Req, Cfg>,

source§

fn into_factory(self) -> T

Convert Self to a ServiceFactory
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.