1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
use RefCell;
use fmt;
use PhantomData;
use ControlFlow;
use Rc;
use crate;
use crate;
thread_local!
/// Worker-owned view of the shards assigned to one local server worker.
///
/// This is the sharded counterpart to [`EmbeddedStore`]. An `EmbeddedStore` can
/// be split into one `WorkerLocalEmbeddedStore` per worker. Each handle owns
/// only its assigned shards and exposes local operations through `&mut self`,
/// letting hot paths skip shared `RwLock` traffic when the key or session route
/// belongs to this worker.
///
/// Methods ending in `_if_local` return [`LocalRouteError`] when a key/session
/// routes to another worker. Methods ending in `_local` assume the caller has
/// already checked routing and use debug assertions for that contract.
/// Temporary container produced while partitioning an [`EmbeddedStore`] across workers.
///
/// `from_embedded` consumes the shared store and produces one
/// [`WorkerLocalEmbeddedStore`] per requested worker. Call [`Self::into_stores`]
/// to hand those stores to worker threads or runtimes.
pub use ;
pub use ;
use worker_local_batch_view_from_embedded;
pub use ;