[][src]Struct i2cbus_api::server::Service

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

Implementations

impl<T, RC> Service<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<T, C> Clone for Service<T, C> where
    T: Clone
[src]

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

type ReqBody = ContextualPayload<Body, C>

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 occur within this Service. Read more

type Future = Box<dyn Future<Item = Response<Body>, Error = Error> + Send>

The Future returned by this Service.

Auto Trait Implementations

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

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

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

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

impl<T, RC> UnwindSafe for Service<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<T, C> SwaggerService<C> for T where
    C: Has<Option<AuthData>> + Has<Option<Authorization>> + Has<XSpanIdString> + Clone + 'static + Send,
    T: Clone + Service<ReqBody = ContextualPayload<Body, C>, ResBody = Body, Error = Error, Future = Box<dyn Future<Item = Response<Body>, Error = Error> + 'static + Send>>, 
[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.