pub struct PoolState { /* private fields */ }Expand description
连接池的 actix-web 应用数据包装
Pool 内部使用 Arc 共享,PoolState 提供轻量级 Clone,
便于在 App::app_data 中注册,并实现 FromRequest 以便在 handler 中提取。
Implementations§
Trait Implementations§
Source§impl FromRequest for PoolState
impl FromRequest for PoolState
Auto Trait Implementations§
impl !RefUnwindSafe for PoolState
impl !UnwindSafe for PoolState
impl Freeze for PoolState
impl Send for PoolState
impl Sync for PoolState
impl Unpin for PoolState
impl UnsafeUnpin for PoolState
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