pub struct VerifierBuilder { /* private fields */ }Expand description
Builds a Verifier.
Implementations§
Source§impl VerifierBuilder
impl VerifierBuilder
Sourcepub fn scheme(self, scheme: impl Into<String>) -> Self
pub fn scheme(self, scheme: impl Into<String>) -> Self
The scheme clients dial. Defaults to https.
Sourcepub const fn max_age(self, max_age: Duration) -> Self
pub const fn max_age(self, max_age: Duration) -> Self
The maximum age of created. Defaults to DEFAULT_MAX_AGE.
Sourcepub const fn max_future_skew(self, max_future_skew: Duration) -> Self
pub const fn max_future_skew(self, max_future_skew: Duration) -> Self
How far ahead of this clock created may be. Defaults to DEFAULT_MAX_FUTURE_SKEW.
Sourcepub fn replay_guard(self, replay_guard: Arc<dyn ReplayGuard>) -> Self
pub fn replay_guard(self, replay_guard: Arc<dyn ReplayGuard>) -> Self
Refuses a second use of the same request. Off by default; see crate::replay.
Sourcepub fn clock(self, clock: Arc<dyn Clock>) -> Self
pub fn clock(self, clock: Arc<dyn Clock>) -> Self
The clock to check freshness against. Defaults to SystemClock.
Sourcepub fn build(self) -> Result<Verifier, VerifierConfigError>
pub fn build(self) -> Result<Verifier, VerifierConfigError>
Builds the verifier.
§Errors
Returns a VerifierConfigError when the configuration cannot verify anything.
Auto Trait Implementations§
impl !RefUnwindSafe for VerifierBuilder
impl !UnwindSafe for VerifierBuilder
impl Freeze for VerifierBuilder
impl Send for VerifierBuilder
impl Sync for VerifierBuilder
impl Unpin for VerifierBuilder
impl UnsafeUnpin for VerifierBuilder
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