pub struct DualProtocolService<Service: Clone> { /* private fields */ }
Expand description
Trait Implementations§
Source§impl<Service: Clone + Clone> Clone for DualProtocolService<Service>
impl<Service: Clone + Clone> Clone for DualProtocolService<Service>
Source§fn clone(&self) -> DualProtocolService<Service>
fn clone(&self) -> DualProtocolService<Service>
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<Service, RequestBody, ResponseBody> Service<Request<RequestBody>> for DualProtocolService<Service>
impl<Service, RequestBody, ResponseBody> Service<Request<RequestBody>> for DualProtocolService<Service>
Source§type Response = Response<Either<ResponseBody, Either<ResponseBody, Empty<Bytes>>>>
type Response = Response<Either<ResponseBody, Either<ResponseBody, Empty<Bytes>>>>
Responses given by the service.
Source§type Error = <Service as Service<Request<RequestBody>>>::Error
type Error = <Service as Service<Request<RequestBody>>>::Error
Errors produced by the service.
Source§type Future = DualProtocolServiceFuture<Service, RequestBody, ResponseBody>
type Future = DualProtocolServiceFuture<Service, RequestBody, ResponseBody>
The future response value.
Auto Trait Implementations§
impl<Service> Freeze for DualProtocolService<Service>where
Service: Freeze,
impl<Service> RefUnwindSafe for DualProtocolService<Service>where
Service: RefUnwindSafe,
impl<Service> Send for DualProtocolService<Service>where
Service: Send,
impl<Service> Sync for DualProtocolService<Service>where
Service: Sync,
impl<Service> Unpin for DualProtocolService<Service>where
Service: Unpin,
impl<Service> UnwindSafe for DualProtocolService<Service>where
Service: UnwindSafe,
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