pub struct Prechecked { /* private fields */ }Expand description
A statement that passed UrlTokenConfig::precheck: syntax, key id
and signature verified, still unbound to the request. Debug shows
neither the token nor its claims.
Implementations§
Source§impl Prechecked
impl Prechecked
Sourcepub fn check_binding(
self,
binding: &Binding<'_>,
now_ms: i64,
ttl_ms: u64,
) -> Result<BoundToken, TokenRejected>
pub fn check_binding( self, binding: &Binding<'_>, now_ms: i64, ttl_ms: u64, ) -> Result<BoundToken, TokenRejected>
Verification phase 2, before any stored-epoch read
(SPEC-HTTP-OBJECTS §6): audience, repository and target
equal the request’s byte for byte, now < expiry, and
expiry - issued <= ttl_ms — the configured lifetime, which may
be shorter than the statement grammar’s MAX_TTL_MS bound.
§Errors
TokenRejected for any failure.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Prechecked
impl RefUnwindSafe for Prechecked
impl Send for Prechecked
impl Sync for Prechecked
impl Unpin for Prechecked
impl UnsafeUnpin for Prechecked
impl UnwindSafe for Prechecked
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