pub struct State(/* private fields */);Expand description
Implementations§
Source§impl State
impl State
Sourcepub fn matches(&self, presented: &str) -> bool
pub fn matches(&self, presented: &str) -> bool
Whether this is the state the request expected.
Plain equality, and deliberately not a constant-time comparison: state
is compared against a value the caller already holds, it is not a
bearer secret being presented to a verifier that would otherwise leak
its contents through timing. The PKCE verifier is the one compared
against an attacker-supplied value, and that comparison happens at the
authorization server, not here.
Trait Implementations§
impl Eq for State
impl StructuralPartialEq for State
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnsafeUnpin for State
impl UnwindSafe for State
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