[−][src]Enum hc_vault::RenewPolicy
The RenewPolicy describes how the vault client should deal with expired vault session
Variants
Reauth causes the vault client to acquire a completly new vault session, via the provided auth config, if the old one expired. This is a lazy operation, so it only checks if it needs a new session before making a request
Renew(f32)
Renew causes the vault client to try and renew a token as long and as often as possible without ever letting it actually expire. The float should be a value between 0-1 and represents the percentage (0=0%, 1=100%) of time that should be remaining before a session/token is renewed.
Example: With a threshold of 0.25 and a total Token Duration of 60m, the Token will be renewed after 45m/ when only 15min are left.
Nothing does nothing when the session expires. This will cause the client to always return a SessionExpired error when trying to request anything from vault
Auto Trait Implementations
impl RefUnwindSafe for RenewPolicy
[src]
impl Send for RenewPolicy
[src]
impl Sync for RenewPolicy
[src]
impl Unpin for RenewPolicy
[src]
impl UnwindSafe for RenewPolicy
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,