pub struct EmptyRefusal;Available on crate feature
tower only.Expand description
The default refusal: B::default() as the body (empty for the usual body
types), no extra headers.
Trait Implementations§
Source§impl Clone for EmptyRefusal
impl Clone for EmptyRefusal
impl Copy for EmptyRefusal
Source§impl Debug for EmptyRefusal
impl Debug for EmptyRefusal
Source§impl Default for EmptyRefusal
impl Default for EmptyRefusal
Source§impl<B: Default> RefusalResponse<B> for EmptyRefusal
impl<B: Default> RefusalResponse<B> for EmptyRefusal
Source§fn refusal_response(&self, _cx: RejectContext<'_>) -> Response<B>
fn refusal_response(&self, _cx: RejectContext<'_>) -> Response<B>
The response for this refusal, before the layer sets its status and
WWW-Authenticate challenge.Auto Trait Implementations§
impl Freeze for EmptyRefusal
impl RefUnwindSafe for EmptyRefusal
impl Send for EmptyRefusal
impl Sync for EmptyRefusal
impl Unpin for EmptyRefusal
impl UnsafeUnpin for EmptyRefusal
impl UnwindSafe for EmptyRefusal
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