pub struct AlwaysReturnPolicy;
Expand description
A passthrough policy that will always return an HTTP error (i.e. when authentication is mandatory)
Trait Implementations§
source§impl Clone for AlwaysReturnPolicy
impl Clone for AlwaysReturnPolicy
source§fn clone(&self) -> AlwaysReturnPolicy
fn clone(&self) -> AlwaysReturnPolicy
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AlwaysReturnPolicy
impl Debug for AlwaysReturnPolicy
source§impl PassthroughPolicy for AlwaysReturnPolicy
impl PassthroughPolicy for AlwaysReturnPolicy
source§fn policy(&self, _error: &AuthError) -> PassthroughAction
fn policy(&self, _error: &AuthError) -> PassthroughAction
When authentication fails, this function is run to determine what to do
impl Copy for AlwaysReturnPolicy
Auto Trait Implementations§
impl RefUnwindSafe for AlwaysReturnPolicy
impl Send for AlwaysReturnPolicy
impl Sync for AlwaysReturnPolicy
impl Unpin for AlwaysReturnPolicy
impl UnwindSafe for AlwaysReturnPolicy
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