[−][src]Struct i2cbus_api::server::Service
Methods
impl<T, C> Service<T, C> where
T: Api<C> + Clone + 'static,
C: Has<XSpanIdString> + 'static,
[src]
T: Api<C> + Clone + 'static,
C: Has<XSpanIdString> + 'static,
Trait Implementations
impl<T, C> Clone for Service<T, C>
[src]
fn clone(&self) -> Self
[src]
default fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T, C> Service for Service<T, C> where
T: Api<C> + Clone + 'static,
C: Has<XSpanIdString> + 'static,
[src]
T: Api<C> + Clone + 'static,
C: Has<XSpanIdString> + 'static,
type Request = (Request, C)
Requests handled by the service.
type Response = Response
Responses given by the service.
type Error = Error
Errors produced by the service.
type Future = Box<dyn Future<Item = Response, Error = Error>>
The future response value.
fn call(&self, (req, context): Self::Request) -> Self::Future
[src]
Auto Trait Implementations
impl<T, C> Send for Service<T, C> where
C: Send,
T: Send + Sync,
C: Send,
T: Send + Sync,
impl<T, C> Sync for Service<T, C> where
C: Sync,
T: Send + Sync,
C: Sync,
T: Send + Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<T, C> SwaggerService for T where
C: Has<Option<AuthData>> + Has<Option<Authorization>> + Has<XSpanIdString> + Clone + 'static,
T: Clone + Service<Request = (Request<Body>, C), Response = Response<Body>, Error = Error, Future = Box<dyn Future<Item = Response<Body>, Error = Error> + 'static>>,
[src]
C: Has<Option<AuthData>> + Has<Option<Authorization>> + Has<XSpanIdString> + Clone + 'static,
T: Clone + Service<Request = (Request<Body>, C), Response = Response<Body>, Error = Error, Future = Box<dyn Future<Item = Response<Body>, Error = Error> + 'static>>,