Trait message_worker::ThreadSafeContext[][src]

pub trait ThreadSafeContext: Context + Send + Sync { }
Expand description

If you are using a non_blocking listener, this implementation is required alongside Context.

For mutability inside a Context you can use Mutexes or RwLocks. The Message Worker runtime guarantees that it will never attempt to access your context in parallel from one listener.

Implementors