pub struct AuthConfig {
pub auth_interval_hours: u16,
pub grace_period_hours: u16,
pub warning_threshold_hours: u16,
}Expand description
Configuration for authentication intervals and thresholds.
Fields§
§auth_interval_hours: u16Certificate validity period in hours. Default: 24.
grace_period_hours: u16Grace period after expiration in hours. Default: 4.
warning_threshold_hours: u16Warning threshold before expiration in hours. Default: 1.
Implementations§
Source§impl AuthConfig
impl AuthConfig
Sourcepub fn new(
auth_interval_hours: u16,
grace_period_hours: u16,
warning_threshold_hours: u16,
) -> Self
pub fn new( auth_interval_hours: u16, grace_period_hours: u16, warning_threshold_hours: u16, ) -> Self
Create config with custom intervals.
Sourcepub fn auth_interval_ms(&self) -> u64
pub fn auth_interval_ms(&self) -> u64
Auth interval in milliseconds.
Sourcepub fn grace_period_ms(&self) -> u64
pub fn grace_period_ms(&self) -> u64
Grace period in milliseconds.
Sourcepub fn warning_threshold_ms(&self) -> u64
pub fn warning_threshold_ms(&self) -> u64
Warning threshold in milliseconds.
Trait Implementations§
Source§impl Clone for AuthConfig
impl Clone for AuthConfig
Source§fn clone(&self) -> AuthConfig
fn clone(&self) -> AuthConfig
Returns a duplicate 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 AuthConfig
impl Debug for AuthConfig
Source§impl Default for AuthConfig
impl Default for AuthConfig
Source§impl PartialEq for AuthConfig
impl PartialEq for AuthConfig
impl Copy for AuthConfig
impl Eq for AuthConfig
impl StructuralPartialEq for AuthConfig
Auto Trait Implementations§
impl Freeze for AuthConfig
impl RefUnwindSafe for AuthConfig
impl Send for AuthConfig
impl Sync for AuthConfig
impl Unpin for AuthConfig
impl UnsafeUnpin for AuthConfig
impl UnwindSafe for AuthConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more