pub struct BoxService<Req, Res, Err> { /* private fields */ }
Expand description
装箱的Service
特征对象。
BoxService
将服务转换为特征对象并装箱,允许Service::Future
是动态的。
如果需要一个实现Clone
的装箱服务,考虑使用BoxCloneService
或RcService
。
Implementations§
Source§impl<Req, Res, Err> BoxService<Req, Res, Err>
impl<Req, Res, Err> BoxService<Req, Res, Err>
Trait Implementations§
Source§impl<Req, Res, Err> Debug for BoxService<Req, Res, Err>
impl<Req, Res, Err> Debug for BoxService<Req, Res, Err>
Source§impl<Req, Res, Err> Service<Req> for BoxService<Req, Res, Err>
impl<Req, Res, Err> Service<Req> for BoxService<Req, Res, Err>
Auto Trait Implementations§
impl<Req, Res, Err> Freeze for BoxService<Req, Res, Err>
impl<Req, Res, Err> !RefUnwindSafe for BoxService<Req, Res, Err>
impl<Req, Res, Err> !Send for BoxService<Req, Res, Err>
impl<Req, Res, Err> !Sync for BoxService<Req, Res, Err>
impl<Req, Res, Err> Unpin for BoxService<Req, Res, Err>
impl<Req, Res, Err> !UnwindSafe for BoxService<Req, Res, Err>
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