pub struct Deny {
pub reason: AnyError,
pub code: StatusCode,
}Expand description
Request rejection with HTTP status code and reason.
Returned by RequestHandler to reject a request. The proxy will
send an error response to the client with the specified status code.
Fields§
§reason: AnyErrorHuman-readable explanation (for logging, not sent to client).
code: StatusCodeHTTP status code to return to the client.
Implementations§
Trait Implementations§
Source§impl From<Deny> for ProxyError
impl From<Deny> for ProxyError
Source§impl From<InvalidHeaderValue> for Deny
impl From<InvalidHeaderValue> for Deny
Source§fn from(_value: InvalidHeaderValue) -> Self
fn from(_value: InvalidHeaderValue) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Deny
impl !RefUnwindSafe for Deny
impl Send for Deny
impl Sync for Deny
impl Unpin for Deny
impl UnsafeUnpin for Deny
impl !UnwindSafe for Deny
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