pub struct ClockSkew { /* private fields */ }Expand description
Clock skew applied to SAML time-window checks.
Implementations§
Source§impl ClockSkew
impl ClockSkew
Sourcepub fn from_millis(not_before_ms: i64, not_on_or_after_ms: i64) -> ClockSkew
pub fn from_millis(not_before_ms: i64, not_on_or_after_ms: i64) -> ClockSkew
Build clock skew from the raw SAML drift values, in milliseconds.
The first argument applies to NotBefore; the second applies to
NotOnOrAfter.
Sourcepub fn with_not_before_millis(self, not_before_ms: i64) -> ClockSkew
pub fn with_not_before_millis(self, not_before_ms: i64) -> ClockSkew
Return a copy with the NotBefore skew, in milliseconds.
Sourcepub fn with_not_on_or_after_millis(self, not_on_or_after_ms: i64) -> ClockSkew
pub fn with_not_on_or_after_millis(self, not_on_or_after_ms: i64) -> ClockSkew
Return a copy with the NotOnOrAfter skew, in milliseconds.
Sourcepub fn not_before_millis(self) -> i64
pub fn not_before_millis(self) -> i64
NotBefore skew, in milliseconds.
Sourcepub fn not_on_or_after_millis(self) -> i64
pub fn not_on_or_after_millis(self) -> i64
NotOnOrAfter skew, in milliseconds.
Trait Implementations§
impl Copy for ClockSkew
impl Eq for ClockSkew
impl StructuralPartialEq for ClockSkew
Auto Trait Implementations§
impl Freeze for ClockSkew
impl RefUnwindSafe for ClockSkew
impl Send for ClockSkew
impl Sync for ClockSkew
impl Unpin for ClockSkew
impl UnsafeUnpin for ClockSkew
impl UnwindSafe for ClockSkew
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