pub struct SuppliedSessionCookies { /* private fields */ }Expand description
Move-only supplied cookie values bound to one validated V2 policy.
Secret bytes remain in one zeroizing backing allocation. Request headers are composed transiently only for exact policy-admitted targets.
Implementations§
Source§impl SuppliedSessionCookies
impl SuppliedSessionCookies
Sourcepub fn parse_tsv(
policy: &SuppliedSessionPolicy,
source: impl Into<Vec<u8>>,
now_unix_seconds: i64,
) -> Result<Self, SuppliedSessionCookieError>
pub fn parse_tsv( policy: &SuppliedSessionPolicy, source: impl Into<Vec<u8>>, now_unix_seconds: i64, ) -> Result<Self, SuppliedSessionCookieError>
Parses strict cookie-id<TAB>value rows and validates initial coverage.
Every policy cookie must occur exactly once. Values use the RFC cookie
octet subset and are never trimmed or decoded. now_unix_seconds is an
explicit caller-supplied clock reading used only for expiry checks.
Number of secret cookie values retained by this jar.
Trait Implementations§
Source§impl Debug for SuppliedSessionCookies
impl Debug for SuppliedSessionCookies
Source§impl From<SuppliedSessionCookies> for SuppliedSessionCredential
impl From<SuppliedSessionCookies> for SuppliedSessionCredential
Source§fn from(value: SuppliedSessionCookies) -> Self
fn from(value: SuppliedSessionCookies) -> Self
Converts to this type from the input type.
Source§impl From<SuppliedSessionCookies> for SuppliedSessionRuntimeInput
impl From<SuppliedSessionCookies> for SuppliedSessionRuntimeInput
Source§fn from(value: SuppliedSessionCookies) -> Self
fn from(value: SuppliedSessionCookies) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SuppliedSessionCookies
impl RefUnwindSafe for SuppliedSessionCookies
impl Send for SuppliedSessionCookies
impl Sync for SuppliedSessionCookies
impl Unpin for SuppliedSessionCookies
impl UnsafeUnpin for SuppliedSessionCookies
impl UnwindSafe for SuppliedSessionCookies
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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