pub struct ArcHyperService {
pub shared: Arc<dyn SharedHyperService>,
}
Expand description
a service that can be shared between threads
Fields§
Implementations§
Source§impl ArcHyperService
impl ArcHyperService
pub fn new<T>(service: T) -> Selfwhere
T: Service<SgRequest, Response = SgResponse, Error = Infallible> + Send + Sync + 'static,
T::Future: Future<Output = Result<Response<SgBody>, Infallible>> + 'static + Send,
Trait Implementations§
Source§impl Clone for ArcHyperService
impl Clone for ArcHyperService
Source§impl Debug for ArcHyperService
impl Debug for ArcHyperService
Source§impl Service<Request<SgBody>> for ArcHyperService
impl Service<Request<SgBody>> for ArcHyperService
Auto Trait Implementations§
impl Freeze for ArcHyperService
impl !RefUnwindSafe for ArcHyperService
impl Send for ArcHyperService
impl Sync for ArcHyperService
impl Unpin for ArcHyperService
impl !UnwindSafe for ArcHyperService
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