pub struct BoxService<Request, Response, Error> { /* private fields */ }
Expand description
A boxed Service
, to serve requests with,
for where you require dynamic dispatch.
Implementations§
Source§impl<Request, Response, Error> BoxService<Request, Response, Error>
impl<Request, Response, Error> BoxService<Request, Response, Error>
Sourcepub fn new<T>(service: T) -> Selfwhere
T: Service<Request, Response = Response, Error = Error>,
pub fn new<T>(service: T) -> Selfwhere
T: Service<Request, Response = Response, Error = Error>,
Create a new BoxService
from the given service.
Trait Implementations§
Source§impl<Request, Response, Error> Debug for BoxService<Request, Response, Error>
impl<Request, Response, Error> Debug for BoxService<Request, Response, Error>
Auto Trait Implementations§
impl<Request, Response, Error> Freeze for BoxService<Request, Response, Error>
impl<Request, Response, Error> !RefUnwindSafe for BoxService<Request, Response, Error>
impl<Request, Response, Error> Send for BoxService<Request, Response, Error>
impl<Request, Response, Error> Sync for BoxService<Request, Response, Error>
impl<Request, Response, Error> Unpin for BoxService<Request, Response, Error>
impl<Request, Response, Error> !UnwindSafe for BoxService<Request, Response, Error>
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