[−][src]Struct mbus_api::server::Service
Implementations
impl<T, RC> Service<T, RC> where
T: Api<RC> + Clone + Send + 'static,
RC: Has<XSpanIdString> + 'static,
[src]
T: Api<RC> + Clone + Send + 'static,
RC: Has<XSpanIdString> + 'static,
Trait Implementations
impl<T, C> Clone for Service<T, C> where
T: Clone,
[src]
T: Clone,
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T, C> Service for Service<T, C> where
T: Api<C> + Clone + Send + 'static,
C: Has<XSpanIdString> + 'static + Send,
[src]
T: Api<C> + Clone + Send + 'static,
C: Has<XSpanIdString> + 'static + Send,
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
.
fn call(&mut self, req: Request<Self::ReqBody>) -> Self::Future
[src]
fn poll_ready(&mut self) -> Result<Async<()>, Self::Error>
[src]
Auto Trait Implementations
impl<T, RC> RefUnwindSafe for Service<T, RC> where
RC: RefUnwindSafe,
T: RefUnwindSafe,
RC: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, RC> Send for Service<T, RC> where
RC: Send,
T: Send,
RC: Send,
T: Send,
impl<T, RC> Sync for Service<T, RC> where
RC: Sync,
T: Sync,
RC: Sync,
T: Sync,
impl<T, RC> Unpin for Service<T, RC> where
RC: Unpin,
T: Unpin,
RC: Unpin,
T: Unpin,
impl<T, RC> UnwindSafe for Service<T, RC> where
RC: UnwindSafe,
T: UnwindSafe,
RC: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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<Error = Error, Item = Response<Body>> + 'static + Send>>,
[src]
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<Error = Error, Item = Response<Body>> + 'static + Send>>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,