[−][src]Struct i2cbus::NewService
Methods
impl<C> NewService<C>
[src]
Trait Implementations
impl<C> NewService for NewService<C> where
C: Has<XSpanIdString> + Clone + 'static,
[src]
C: Has<XSpanIdString> + Clone + '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 Instance = Service<Server<C>, C>
The Service
value created by this factory
fn new_service(&self) -> Result<Self::Instance>
[src]
Instantiate a new server.
Auto Trait Implementations
impl<C> Send for NewService<C> where
C: Send,
C: Send,
impl<C> Sync for NewService<C> where
C: Sync,
C: 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>,