MCPcopy Create free account
hub / github.com/actix/examples / new_transform

Method new_transform

middleware/various/src/simple.rs:30–32  ·  view source on GitHub ↗
(&self, service: S)

Source from the content-addressed store, hash-verified

28 type Future = Ready<Result<Self::Transform, Self::InitError>>;
29
30 fn new_transform(&self, service: S) -> Self::Future {
31 ready(Ok(SayHiMiddleware { service }))
32 }
33}
34
35pub struct SayHiMiddleware<S> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected