pub struct TlsReloadRuntimeState<M> {
pub current: ArcSwap<TlsPublishedState<M>>,
pub last_good: ArcSwap<TlsPublishedState<M>>,
pub last_attempt_unix_ms: AtomicU64,
pub last_success_unix_ms: AtomicU64,
pub last_error: RwLock<Option<String>>,
}Fields§
§current: ArcSwap<TlsPublishedState<M>>§last_good: ArcSwap<TlsPublishedState<M>>§last_attempt_unix_ms: AtomicU64§last_success_unix_ms: AtomicU64§last_error: RwLock<Option<String>>Implementations§
Source§impl<M> TlsReloadRuntimeState<M>
impl<M> TlsReloadRuntimeState<M>
pub fn new(initial: Arc<TlsPublishedState<M>>) -> Self
pub fn current_generation(&self) -> TlsGeneration
pub fn bump_generation(&self) -> TlsGeneration
pub fn mark_attempt(&self, unix_ms: u64)
pub fn mark_success(&self, unix_ms: u64)
pub fn last_attempt_unix_ms(&self) -> u64
pub fn last_success_unix_ms(&self) -> u64
Trait Implementations§
Auto Trait Implementations§
impl<M> !Freeze for TlsReloadRuntimeState<M>
impl<M> !RefUnwindSafe for TlsReloadRuntimeState<M>
impl<M> Send for TlsReloadRuntimeState<M>
impl<M> Sync for TlsReloadRuntimeState<M>
impl<M> Unpin for TlsReloadRuntimeState<M>
impl<M> UnsafeUnpin for TlsReloadRuntimeState<M>
impl<M> UnwindSafe for TlsReloadRuntimeState<M>
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> 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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request