MCPcopy Create free account
hub / github.com/Migorithm/rustiful-backend / ContextManager

Class ContextManager

library/src/adapters/database.rs:17–21  ·  view source on GitHub ↗

Task Local Context Manager This is called for every time Messagebus.handle is invoked within which it manages events raised in service. It spawns out Executor that manages transaction.

Source from the content-addressed store, hash-verified

15/// This is called for every time Messagebus.handle is invoked within which it manages events raised in service.
16/// It spawns out Executor that manages transaction.
17pub struct ContextManager {
18 pub pool: &'static PgPool,
19
20 pub sender: Sender<Box<dyn Message>>,
21}
22
23impl ContextManager {
24 /// Creation of context manager returns context manager AND event receiver

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected