Skip to main content

Module context

Module context 

Source
Expand description

上下文模块 - 用于在请求处理过程中传递 token 信息

Context module — carries token info during a request. tokio::task_local!: stays bound to the same logical async task across awaits/workers (preferred). thread_local: backward-compatible synchronous path (set_current / clear).

Structs§

SaTokenContext
sa-token 上下文 | sa-token Context