Struct tiny_web::sys::worker::WorkerData
source · pub struct WorkerData {
pub engine: Arc<ActMap>,
pub lang: Arc<Lang>,
pub html: Arc<Html>,
pub cache: Arc<Mutex<Cache>>,
pub db: Arc<DBPool>,
pub salt: Arc<String>,
}
Expand description
General data
Values
engine: Arc<ActMap>
- Engine - binary tree of controller functions.lang: Arc<Lang>
- I18n system.html: Arc<Html>
- Template maker.cache: Arc<Mutex<Cache>>
- Cache system.db: Arc<DBPool>
- Database connections pool.salt: Arc<String>
- Salt for a crypto functions.
Fields§
§engine: Arc<ActMap>
Engine - binary tree of controller functions.
lang: Arc<Lang>
I18n system.
html: Arc<Html>
Template maker.
cache: Arc<Mutex<Cache>>
Cache system.
db: Arc<DBPool>
Database connections pool.
salt: Arc<String>
Salt for a crypto functions.
Auto Trait Implementations§
impl !RefUnwindSafe for WorkerData
impl Send for WorkerData
impl Sync for WorkerData
impl Unpin for WorkerData
impl !UnwindSafe for WorkerData
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more