# New Context type for structured, scoped shared state

**URL:** <https://internals.rust-lang.org/t/new-context-type-for-structured-scoped-shared-state/19734>\
**Category:** language design\
**Created:** [October 20, 2023, 2:18pm UTC](https://internals.rust-lang.org/t/new-context-type-for-structured-scoped-shared-state/19734 "2023-10-20T14:18:43Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mathstuf](https://avatars.discourse-cdn.com/v4/letter/m/958977/32.png) [@mathstuf](https://internals.rust-lang.org/u/mathstuf)\
**Post date:** [October 20, 2023, 8:22pm UTC](https://internals.rust-lang.org/t/new-context-type-for-structured-scoped-shared-state/19734/2 "2023-10-20T20:22:11Z")

</div>

This is sometimes also called an "effect system". It has been discussed before:

- [Pre-RFC: typed context injection](https://internals.rust-lang.org/t/pre-rfc-typed-context-injection/19579)
- [Blog post: Contexts and capabilities in Rust](https://internals.rust-lang.org/t/blog-post-contexts-and-capabilities-in-rust/15833)

---

_[View the full topic](https://internals.rust-lang.org/t/new-context-type-for-structured-scoped-shared-state/19734)._
