[][src]Enum hc_vault::RenewPolicy

pub enum RenewPolicy {
    Reauth,
    Nothing,
}

The RenewPolicy describes how the vault client should deal with expired vault session

Variants

Reauth

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

Nothing

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.