[][src]Struct mbus_api::server::Service

pub struct Service<T, C> { /* fields omitted */ }

Methods

impl<T, C> Service<T, C> where
    T: Api<C> + Clone + 'static,
    C: Has<XSpanIdString> + 'static, 
[src]

pub fn new<U: Into<Arc<T>>>(api_impl: U) -> Service<T, C>[src]

Trait Implementations

impl<T, C> Clone for Service<T, C>[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T, C> Service for Service<T, C> where
    T: Api<C> + Clone + 'static,
    C: Has<XSpanIdString> + 'static, 
[src]

type Request = (Request, C)

Requests handled by the service.

type Response = Response

Responses given by the service.

type Error = Error

Errors produced by the service.

type Future = Box<dyn Future<Item = Response, Error = Error>>

The future response value.

Auto Trait Implementations

impl<T, C> Send for Service<T, C> where
    C: Send,
    T: Send + Sync

impl<T, C> Sync for Service<T, C> where
    C: Sync,
    T: Send + Sync

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<T, C> SwaggerService for T where
    C: Has<Option<AuthData>> + Has<Option<Authorization>> + Has<XSpanIdString> + Clone + 'static,
    T: Clone + Service<Request = (Request<Body>, C), Response = Response<Body>, Error = Error, Future = Box<dyn Future<Item = Response<Body>, Error = Error> + 'static>>, 
[src]