pub struct RcService<Req, Res, Err> { /* private fields */ }
Expand description
装箱的Service
特征对象。
RcService
将服务转换为特征对象并装箱,允许Service::Future
是动态的,
并允许共享服务。
这与BoxService
类似,只是RcService
实现了Clone
。
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<Req, Res, Err> Freeze for RcService<Req, Res, Err>
impl<Req, Res, Err> !RefUnwindSafe for RcService<Req, Res, Err>
impl<Req, Res, Err> !Send for RcService<Req, Res, Err>
impl<Req, Res, Err> !Sync for RcService<Req, Res, Err>
impl<Req, Res, Err> Unpin for RcService<Req, Res, Err>
impl<Req, Res, Err> !UnwindSafe for RcService<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