pub struct VerifiedTlsConnector { /* private fields */ }Expand description
Stateful verified-TLS connector with atomic trust-root replacement.
A complete valid replacement is used for subsequent connections. An unavailable, malformed, or unsafe replacement retains the last valid snapshot. Existing channels are unaffected and never downgrade.
Implementations§
Source§impl VerifiedTlsConnector
impl VerifiedTlsConnector
Sourcepub fn new(config: TlsClientConfig) -> Result<Self, ClientError>
pub fn new(config: TlsClientConfig) -> Result<Self, ClientError>
Loads and validates the initial trust-root snapshot.
Sourcepub async fn connect(&mut self) -> Result<RiffDbClient, ClientError>
pub async fn connect(&mut self) -> Result<RiffDbClient, ClientError>
Connects one reusable HTTP/2 channel using the current valid snapshot.
Sourcepub const fn last_reload_status(&self) -> TlsTrustReloadStatus
pub const fn last_reload_status(&self) -> TlsTrustReloadStatus
Returns a path-free disposition suitable for operator diagnostics.
Auto Trait Implementations§
impl Freeze for VerifiedTlsConnector
impl RefUnwindSafe for VerifiedTlsConnector
impl Send for VerifiedTlsConnector
impl Sync for VerifiedTlsConnector
impl Unpin for VerifiedTlsConnector
impl UnsafeUnpin for VerifiedTlsConnector
impl UnwindSafe for VerifiedTlsConnector
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].