INNER CODE UNIT · Rust
layer
vercel-community/rust · crates/vercel_axum/src/lib.rs:17
fn layer(&self, inner: S) -> Self::Service {
VercelService { inner }
}
}
pub struct VercelService<S> {
inner: S,
}
impl<S> Service<Event<'_>> for VercelService<S>
where
S: Service<axum::http::Request<axum::body::Body>>,
S::Response: axum::response::IntoResponse + Send + 'static,
S::Error: std::error::Error + Send + Sync + 'static,
S::Future: Send + 'static,
{
type Response = EventResponse;
type Error = vercel_runtime::Error;