pub struct Inner { /* private fields */ }
Expand description
A shared hyper service wrapper
Implementations§
Source§impl Inner
impl Inner
pub fn new(inner: ArcHyperService) -> Self
Sourcepub async fn call(self, req: Request<SgBody>) -> Response<SgBody>
pub async fn call(self, req: Request<SgBody>) -> Response<SgBody>
Call the inner service and get the response
Sourcepub fn into_inner(self) -> ArcHyperService
pub fn into_inner(self) -> ArcHyperService
Unwrap the inner service
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Inner
impl !RefUnwindSafe for Inner
impl Send for Inner
impl Sync for Inner
impl Unpin for Inner
impl !UnwindSafe for Inner
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more