pub struct InsecureReverseProxyService<C, Body> {
pub target: String,
pub proxy: HyperReverseProxy<C, Body>,
}
Fields§
§target: String
§proxy: HyperReverseProxy<C, Body>
Implementations§
Source§impl<C, B> InsecureReverseProxyService<C, B>
impl<C, B> InsecureReverseProxyService<C, B>
Source§impl<B> InsecureReverseProxyService<HttpConnector, B>
impl<B> InsecureReverseProxyService<HttpConnector, B>
pub fn new_http( target: impl Into<String>, ) -> InsecureReverseProxyService<HttpConnector, B>
Trait Implementations§
Source§impl<C: Clone, B> Clone for InsecureReverseProxyService<C, B>
impl<C: Clone, B> Clone for InsecureReverseProxyService<C, B>
Source§impl<C, Body> Service<Request<Body>> for InsecureReverseProxyService<C, Body>
impl<C, Body> Service<Request<Body>> for InsecureReverseProxyService<C, Body>
Source§type Error = Infallible
type Error = Infallible
Errors produced by the service.
Source§type Future = Pin<Box<dyn Future<Output = Result<<InsecureReverseProxyService<C, Body> as Service<Request<Body>>>::Response, <InsecureReverseProxyService<C, Body> as Service<Request<Body>>>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<InsecureReverseProxyService<C, Body> as Service<Request<Body>>>::Response, <InsecureReverseProxyService<C, Body> as Service<Request<Body>>>::Error>> + Send>>
The future response value.
Auto Trait Implementations§
impl<C, Body> Freeze for InsecureReverseProxyService<C, Body>where
C: Freeze,
impl<C, Body> !RefUnwindSafe for InsecureReverseProxyService<C, Body>
impl<C, Body> Send for InsecureReverseProxyService<C, Body>
impl<C, Body> Sync for InsecureReverseProxyService<C, Body>
impl<C, Body> Unpin for InsecureReverseProxyService<C, Body>where
C: Unpin,
impl<C, Body> !UnwindSafe for InsecureReverseProxyService<C, Body>
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