pub struct NextService;Expand description
The innermost service: hands the request back to the Churust pipeline.
Everything a Layer wraps around this eventually calls it, which is the
point at which the rest of the onion — including the route handler — runs.
Trait Implementations§
Source§impl Clone for NextService
impl Clone for NextService
Source§fn clone(&self) -> NextService
fn clone(&self) -> NextService
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NextService
Source§impl Default for NextService
impl Default for NextService
Source§fn default() -> NextService
fn default() -> NextService
Returns the “default value” for a type. Read more
Source§impl Service<Request<Body>> for NextService
impl Service<Request<Body>> for NextService
Source§type Future = Pin<Box<dyn Future<Output = Result<<NextService as Service<Request<Body>>>::Response, <NextService as Service<Request<Body>>>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<NextService as Service<Request<Body>>>::Response, <NextService as Service<Request<Body>>>::Error>> + Send>>
The future response value.
Auto Trait Implementations§
impl Freeze for NextService
impl RefUnwindSafe for NextService
impl Send for NextService
impl Sync for NextService
impl Unpin for NextService
impl UnsafeUnpin for NextService
impl UnwindSafe for NextService
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