Struct UnsyncBoxService
pub struct UnsyncBoxService<T, U, E> { /* private fields */ }
A boxed Service trait object.
Implementations
impl<T, U, E> UnsyncBoxService<T, U, E>
fn new<S>(inner: S) -> Self where S: Service<T, Response = U, Error = E> + 'static, S::Future: 'static,fn layer<S>() -> LayerFn<fn(S) -> Self> where S: Service<T, Response = U, Error = E> + 'static, S::Future: 'static,Returns a
Layerfor wrapping aServicein anUnsyncBoxServicemiddleware.
Trait Implementations
impl<T, U, E> Debug for UnsyncBoxService<T, U, E>
fn fmt(&self, fmt: &mut Formatter<'_>) -> Result
impl<T, U, E> Service<T> for UnsyncBoxService<T, U, E>
type Response = U;type Error = E;type Future = Pin<Box<dyn Future<Output = Result<U, E>>>>;fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), E>>fn call(&mut self, request: T) -> Pin<Box<dyn Future<Output = Result<U, E>>>>