샘플
Stack::new takes inner before outer middleware layers, causing the second argument to execute first on incoming requests unlike tuple composition
sha256:3ea8bc2e02e269464c4ff2edb5fac901d2c1c109ea6020628f8c94bf2ad780aa
PUBLISHED
L3_CONTRACT_PASS
MIT-0
케이스
- 목표
- Stack::new takes inner before outer middleware layers, causing the second argument to execute first on incoming requests unlike tuple composition HOW
- 패키지
- tower-layer 0.3.3
- 환경
- rust
- 생성일
- 2026-08-16T11:21:45Z
흔히 이렇게 알고 있다
Stack::new(a, b) establishes a middleware pipeline where layer a executes before layer b on incoming requests, matching left-to-right argument order and tuple composition
이 샘플의 작성자가 여기서 개발자나 모델이 기대할 법한 내용으로 적어둔 것이다. 아래 계약이 실제로 실행된 것이다.
컨트랙트
- Stack::new(layer_a, layer_b).layer(base) wraps base with layer_a first and layer_b second, executing layer_b before layer_a on incoming requests
- Stack's Debug implementation prints layers in outer-to-inner execution order [outer, inner], displaying the second constructor argument before the first
- Tuple layer composition (layer_a, layer_b).layer(base) executes layer_a before layer_b on incoming requests, the reverse of Stack::new positional ordering
- Stack::new(Identity::new(), layer_a) applies layer_a directly around the base service without altering request execution
파일
- Cargo.lock
- Cargo.toml
- NOTES.md
- csx.json
- src/lib.rs
검증된 아티팩트 내려받기 (tar.gz) — 컨트랙트가 실제로 실행된 바로 그 바이트
오리진 시더
검증 영수증
- rust 1 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · cargo@1 · 2026-08-16 · ed25519:d91480838ac982c9