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

pub struct Service<T, C> where
    T: Api<C> + Clone + Send + 'static,
    C: Has<XSpanIdString> + Send + Sync + 'static, 
{ /* fields omitted */ }

Implementations

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

pub fn new(api_impl: T) -> Self[src]

Trait Implementations

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

impl<T, C> Service<(Request<Body>, C)> for Service<T, C> where
    T: Api<C> + Clone + Send + Sync + 'static,
    C: Has<XSpanIdString> + Send + Sync + 'static, 
[src]

type Response = Response<Body>

Responses given by the service.

type Error = Box<dyn Error + Send + Sync + 'static>

Errors produced by the service.

type Future = BoxFuture<'static, Result<Response<Body>, Box<dyn Error + Send + Sync + 'static>>>

The future response value.

Auto Trait Implementations

impl<T, C> RefUnwindSafe for Service<T, C> where
    C: RefUnwindSafe,
    T: RefUnwindSafe

impl<T, C> Send for Service<T, C>

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

impl<T, C> Unpin for Service<T, C> where
    C: Unpin,
    T: Unpin

impl<T, C> UnwindSafe for Service<T, C> where
    C: UnwindSafe,
    T: UnwindSafe

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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<V, T> VZip<V> for T where
    V: MultiLane<T>,