[][src]Struct mbus_api::server::MakeService

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

Implementations

impl<T, C> MakeService<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, Target> Service<Target> for MakeService<T, C> where
    T: Api<C> + Clone + Send + 'static,
    C: Has<XSpanIdString> + Send + Sync + 'static, 
[src]

type Response = Service<T, C>

Responses given by the service.

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

Errors produced by the service.

type Future = Ready<Result<Self::Response, Self::Error>>

The future response value.

Auto Trait Implementations

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

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

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

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

impl<T, C> UnwindSafe for MakeService<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, 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>,