pub struct BoxCloneService<Req, Res, Err> { /* private fields */ }
Expand description
装箱的Service
特征对象。
BoxCloneService
将服务转换为特征对象并装箱,允许Service::Future
是动态的,
并允许克隆服务。
这与BoxService
类似,只是BoxCloneService
实现了Clone
。
Implementations§
Source§impl<Req, Res, Err> BoxCloneService<Req, Res, Err>
impl<Req, Res, Err> BoxCloneService<Req, Res, Err>
Trait Implementations§
Source§impl<Req, Res, Err> Clone for BoxCloneService<Req, Res, Err>
impl<Req, Res, Err> Clone for BoxCloneService<Req, Res, Err>
Source§fn clone(&self) -> BoxCloneService<Req, Res, Err>
fn clone(&self) -> BoxCloneService<Req, Res, Err>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<Req, Res, Err> Debug for BoxCloneService<Req, Res, Err>
impl<Req, Res, Err> Debug for BoxCloneService<Req, Res, Err>
Source§impl<Req, Res, Err> Service<Req> for BoxCloneService<Req, Res, Err>
impl<Req, Res, Err> Service<Req> for BoxCloneService<Req, Res, Err>
Auto Trait Implementations§
impl<Req, Res, Err> Freeze for BoxCloneService<Req, Res, Err>
impl<Req, Res, Err> !RefUnwindSafe for BoxCloneService<Req, Res, Err>
impl<Req, Res, Err> !Send for BoxCloneService<Req, Res, Err>
impl<Req, Res, Err> !Sync for BoxCloneService<Req, Res, Err>
impl<Req, Res, Err> Unpin for BoxCloneService<Req, Res, Err>
impl<Req, Res, Err> !UnwindSafe for BoxCloneService<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