pub struct TlsReloadCoordinator { /* private fields */ }Implementations§
Source§impl TlsReloadCoordinator
impl TlsReloadCoordinator
pub fn new(source: TlsSource, options: TlsReloadOptions) -> Self
pub fn source(&self) -> &TlsSource
pub fn options(&self) -> &TlsReloadOptions
pub async fn status_snapshot( &self, runtime_state: &TlsReloadRuntimeState<TlsMaterialSnapshot>, ) -> TlsRuntimeStatusSnapshot
pub async fn load_initial_snapshot( &self, ) -> Result<TlsMaterialSnapshot, TlsRuntimeError>
pub async fn publish_initial_state( &self, snapshot: TlsMaterialSnapshot, ) -> Arc<TlsPublishedState<TlsMaterialSnapshot>> ⓘ
pub async fn reload_once<C>(
&self,
runtime_state: &TlsReloadRuntimeState<TlsMaterialSnapshot>,
consumer: &C,
) -> Result<Option<Arc<TlsPublishedState<TlsMaterialSnapshot>>>, TlsRuntimeError>where
C: TlsConsumer<TlsMaterialSnapshot>,
pub fn spawn_poll_loop<C>(
self: Arc<Self>,
runtime_state: Arc<TlsReloadRuntimeState<TlsMaterialSnapshot>>,
consumer: Arc<C>,
) -> Option<JoinHandle<()>>where
C: TlsConsumer<TlsMaterialSnapshot>,
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TlsReloadCoordinator
impl RefUnwindSafe for TlsReloadCoordinator
impl Send for TlsReloadCoordinator
impl Sync for TlsReloadCoordinator
impl Unpin for TlsReloadCoordinator
impl UnsafeUnpin for TlsReloadCoordinator
impl UnwindSafe for TlsReloadCoordinator
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