#[shared]Expand description
Transforms a struct into a shared, cheaply-cloneable wrapper.
Always generates:
XxxInnerwith each field wrapped inMutex<T>or stored rawXxx(Arc<XxxInner>)withClone = Arc::cloneXxx::new(...)constructor- Per-field async accessors
Field attributes:
- (default)
Mutex<T>, generatesasync fn field() -> MutexGuard<T> #[raw]stored as-is, generatesfn field() -> &T