pub struct ErrorRemap { /* private fields */ }Implementations§
Source§impl ErrorRemap
impl ErrorRemap
pub fn from_spec(spec: &ErrorRemapSpec) -> Result<Self>
Trait Implementations§
Source§impl ResponseTransform for ErrorRemap
impl ResponseTransform for ErrorRemap
fn apply<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_ctx: &'life1 ResolvedContext,
resp: &'life2 mut ProxyResponse,
) -> Pin<Box<dyn Future<Output = Result<(), TransformError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Auto Trait Implementations§
impl Freeze for ErrorRemap
impl RefUnwindSafe for ErrorRemap
impl Send for ErrorRemap
impl Sync for ErrorRemap
impl Unpin for ErrorRemap
impl UnsafeUnpin for ErrorRemap
impl UnwindSafe for ErrorRemap
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