[−][src]Struct i2cbus_api::server::NewService
Methods
impl<T, C> NewService<T, C> where
T: Api<C> + Clone + 'static,
C: Has<XSpanIdString> + 'static,
[src]
T: Api<C> + Clone + 'static,
C: Has<XSpanIdString> + 'static,
pub fn new<U: Into<Arc<T>>>(api_impl: U) -> NewService<T, C>
[src]
Trait Implementations
impl<T, C> NewService for NewService<T, C> where
T: Api<C> + Clone + 'static,
C: Has<XSpanIdString> + 'static,
[src]
T: Api<C> + Clone + 'static,
C: Has<XSpanIdString> + 'static,
Auto Trait Implementations
impl<T, C> Send for NewService<T, C> where
C: Send,
T: Send + Sync,
C: Send,
T: Send + Sync,
impl<T, C> Sync for NewService<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> 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<F, R> NewService for F where
F: Fn() -> Result<R, Error>,
R: Service,
F: Fn() -> Result<R, Error>,
R: Service,
type Request = <R as Service>::Request
Requests handled by the service
type Response = <R as Service>::Response
Responses given by the service
type Error = <R as Service>::Error
Errors produced by the service
type Instance = R
The Service
value created by this factory
fn new_service(&self) -> Result<R, Error>
impl<T> Erased for T
impl<T, U, V, W> BoxedNewService for T where
T: NewService<Request = U, Response = V, Error = W>,
<T as NewService>::Instance: Service,
<T as NewService>::Instance: 'static,
<<T as NewService>::Instance as Service>::Future == Box<dyn Future<Item = V, Error = W> + 'static>,
[src]
T: NewService<Request = U, Response = V, Error = W>,
<T as NewService>::Instance: Service,
<T as NewService>::Instance: 'static,
<<T as NewService>::Instance as Service>::Future == Box<dyn Future<Item = V, Error = W> + 'static>,