Modules§
- async_
double_ rwlock - plain
- prelude
- Exports all important traits, use as a header when using this crate
Structs§
- Handler
- For handling requests, holds the global
State
Traits§
- Context
- Marks an object as context
- Context
Builder - For building a context, given all fields except for the global state
S
- GetState
- For extracting the
State
Self
from aContext
- State
- Marks an object as state
- State
Async Get - Get data immutably (async immutable version)
- State
Async GetCloned - Get cloned data (async immutable version)
- State
Async GetMut - Get data mutably (async immutable version)
- State
Async GetMut OrInsert - Get data mutably or insert (async immutable version)
- State
Async Insert - Insert and remove data (async immutable version)
- State
Async Remove Get - Remove data and return it (async immutable version)
- State
Async Remove GetCloned - Remove data and return a clone (async immutable version)
- State
Sync Get - Get data immutably (sync immutable version)
- State
Sync GetCloned - Get cloned data (sync immutable version)
- State
Sync Mutable GetMut - Get data mutably (sync mutable version)
- State
Sync Mutable GetMut OrInsert - Get data mutably or insert (sync mutable version)
- State
Sync Mutable Insert - Insert and remove data (sync mutable version)
- State
Sync Mutable Remove Get - Remove data and return it (sync mutable version)
- State
Sync Mutable Remove GetCloned - Remove data and return a clone (sync mutable version)
Derive Macros§
- Context
- Derive
Context
- Context
Builder - Derive
ContextBuilder
#[builder_ident = "MyBuilder"]
defines the name of the builder (required)#[error_ident = "MyBuilderError"]
defines the name of the builder error (required)#[global_state]
marks the global state (field) which is inserted when building (required)#[state]
marks a state (field) which has to be inserted before building - GetState
- Derive
GetState
for all fields marked with either#[state]
or#[global_state]
- State
- Derive
State
- State
Async Get - State
Async GetCloned - State
Async GetMut - State
Async GetMut OrInsert - State
Async Insert - State
Async Remove Get - State
Async Remove GetCloned - State
Sync Get - State
Sync GetCloned - State
Sync Mutable GetMut - State
Sync Mutable GetMut OrInsert - State
Sync Mutable Insert - State
Sync Mutable Remove Get - State
Sync Mutable Remove GetCloned