Struct salvo_extra::proxy::Proxy
source · [−]pub struct Proxy<U> { /* private fields */ }
Available on crate feature
proxy
only.Expand description
Proxy
Implementations
Trait Implementations
sourceimpl<U> Handler for Proxy<U>where
U: Upstreams,
U::Error: Into<BoxedError>,
impl<U> Handler for Proxy<U>where
U: Upstreams,
U::Error: Into<BoxedError>,
sourcefn handle<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
req: &'life1 mut Request,
_depot: &'life2 mut Depot,
res: &'life3 mut Response,
ctrl: &'life4 mut FlowCtrl
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Self: 'async_trait,
fn handle<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
req: &'life1 mut Request,
_depot: &'life2 mut Depot,
res: &'life3 mut Response,
ctrl: &'life4 mut FlowCtrl
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Self: 'async_trait,
Handle http request.
Auto Trait Implementations
impl<U> !RefUnwindSafe for Proxy<U>
impl<U> Send for Proxy<U>where
U: Send,
impl<U> Sync for Proxy<U>where
U: Sync,
impl<U> Unpin for Proxy<U>where
U: Unpin,
impl<U> !UnwindSafe for Proxy<U>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more