Enum actix_net::either::Either[][src]

pub enum Either<A, B> {
    A(A),
    B(B),
}

Combine two different new service types into a single type.

Variants

Trait Implementations

impl<A, B> NewService for Either<A, B> where
    A: NewService,
    B: NewService<Request = A::Request, Response = A::Response, Error = A::Error, InitError = A::InitError>, 
[src]

Requests handled by the service

Responses given by the service

Errors produced by the service

Errors produced while building a service.

The Service value created by this factory

The future of the Service instance.

Create and return a new service value asynchronously.

Auto Trait Implementations

impl<A, B> Send for Either<A, B> where
    A: Send,
    B: Send

impl<A, B> Sync for Either<A, B> where
    A: Sync,
    B: Sync