pub struct NoTlsConfig;Expand description
No-op TLS configuration for testing with plaintext http:// endpoints.
This passes the endpoint through without any TLS configuration.
Only available when the testing feature is enabled.
§Examples
use databricks_zerobus_ingest_sdk::{NoTlsConfig, TlsConfig};
use std::sync::Arc;
let tls: Arc<dyn TlsConfig> = Arc::new(NoTlsConfig);Trait Implementations§
Source§impl Clone for NoTlsConfig
impl Clone for NoTlsConfig
Source§fn clone(&self) -> NoTlsConfig
fn clone(&self) -> NoTlsConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NoTlsConfig
impl Debug for NoTlsConfig
Source§impl Default for NoTlsConfig
impl Default for NoTlsConfig
Source§fn default() -> NoTlsConfig
fn default() -> NoTlsConfig
Returns the “default value” for a type. Read more
Source§impl TlsConfig for NoTlsConfig
Available on crate feature testing only.
impl TlsConfig for NoTlsConfig
Available on crate feature
testing only.Source§fn configure_endpoint(&self, endpoint: Endpoint) -> ZerobusResult<Endpoint>
fn configure_endpoint(&self, endpoint: Endpoint) -> ZerobusResult<Endpoint>
Configure a gRPC endpoint with TLS settings. Read more
Auto Trait Implementations§
impl Freeze for NoTlsConfig
impl RefUnwindSafe for NoTlsConfig
impl Send for NoTlsConfig
impl Sync for NoTlsConfig
impl Unpin for NoTlsConfig
impl UnsafeUnpin for NoTlsConfig
impl UnwindSafe for NoTlsConfig
Blanket Implementations§
impl<T> Allocation for T
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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