[][src]Struct pca9956b_api::server::MakeService

pub struct MakeService<T, RC> { /* fields omitted */ }

Implementations

impl<T, RC> MakeService<T, RC> where
    T: Api<RC> + Clone + Send + 'static,
    RC: Has<XSpanIdString> + 'static, 
[src]

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

Trait Implementations

impl<'a, T, SC, RC> MakeService<&'a SC> for MakeService<T, RC> where
    T: Api<RC> + Clone + Send + 'static,
    RC: Has<XSpanIdString> + 'static + Send
[src]

type ReqBody = ContextualPayload<Body, RC>

The Payload body of the http::Request.

type ResBody = Body

The Payload body of the http::Response.

type Error = Error

The error type that can be returned by Services.

type Service = Service<T, RC>

The resolved Service from new_service().

type Future = FutureResult<Self::Service, Self::MakeError>

The future returned from new_service of a Service.

type MakeError = Error

The error type that can be returned when creating a new Service.

Auto Trait Implementations

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

impl<T, RC> Send for MakeService<T, RC> where
    RC: Send,
    T: Send

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

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

impl<T, RC> UnwindSafe for MakeService<T, RC> where
    RC: 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<N, Ctx> MakeService<Ctx> for N where
    N: NewService
[src]

type ReqBody = <N as NewService>::ReqBody

The Payload body of the http::Request.

type ResBody = <N as NewService>::ResBody

The Payload body of the http::Response.

type Error = <N as NewService>::Error

The error type that can be returned by Services.

type Service = <N as NewService>::Service

The resolved Service from new_service().

type Future = <N as NewService>::Future

The future returned from new_service of a Service.

type MakeError = <N as NewService>::InitError

The error type that can be returned when creating a new Service.

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.