pub enum NewClientError<C: TunnelConfig> {
SniOverride(SniOverrideError),
ToTlsClient(ToTlsClientError<<C::GatewayPki as TrustedStoreConfig>::Error>),
ToTlsServer(ToTlsServerError<<C::ClientCertificate as CertificateConfig>::Error>),
}Variants§
SniOverride(SniOverrideError)
ToTlsClient(ToTlsClientError<<C::GatewayPki as TrustedStoreConfig>::Error>)
ToTlsServer(ToTlsServerError<<C::ClientCertificate as CertificateConfig>::Error>)
Trait Implementations§
Source§impl<C: Debug + TunnelConfig> Debug for NewClientError<C>
impl<C: Debug + TunnelConfig> Debug for NewClientError<C>
Source§impl<C: TunnelConfig> Display for NewClientError<C>where
ToTlsClientError<<C::GatewayPki as TrustedStoreConfig>::Error>: Display,
ToTlsServerError<<C::ClientCertificate as CertificateConfig>::Error>: Display,
impl<C: TunnelConfig> Display for NewClientError<C>where
ToTlsClientError<<C::GatewayPki as TrustedStoreConfig>::Error>: Display,
ToTlsServerError<<C::ClientCertificate as CertificateConfig>::Error>: Display,
Source§impl<C: TunnelConfig> Error for NewClientError<C>where
ToTlsClientError<<C::GatewayPki as TrustedStoreConfig>::Error>: Error + 'static,
ToTlsServerError<<C::ClientCertificate as CertificateConfig>::Error>: Error + 'static,
Self: Debug + Display,
impl<C: TunnelConfig> Error for NewClientError<C>where
ToTlsClientError<<C::GatewayPki as TrustedStoreConfig>::Error>: Error + 'static,
ToTlsServerError<<C::ClientCertificate as CertificateConfig>::Error>: Error + 'static,
Self: Debug + Display,
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl<C: TunnelConfig> From<SniOverrideError> for NewClientError<C>
impl<C: TunnelConfig> From<SniOverrideError> for NewClientError<C>
Source§fn from(source: SniOverrideError) -> Self
fn from(source: SniOverrideError) -> Self
Converts to this type from the input type.
Source§impl<C: TunnelConfig> From<ToTlsClientError<<<C as ClientConfig>::GatewayPki as TrustedStoreConfig>::Error>> for NewClientError<C>
impl<C: TunnelConfig> From<ToTlsClientError<<<C as ClientConfig>::GatewayPki as TrustedStoreConfig>::Error>> for NewClientError<C>
Source§fn from(
source: ToTlsClientError<<C::GatewayPki as TrustedStoreConfig>::Error>,
) -> Self
fn from( source: ToTlsClientError<<C::GatewayPki as TrustedStoreConfig>::Error>, ) -> Self
Converts to this type from the input type.
Source§impl<C: TunnelConfig> From<ToTlsServerError<<<C as TunnelConfig>::ClientCertificate as CertificateConfig>::Error>> for NewClientError<C>
impl<C: TunnelConfig> From<ToTlsServerError<<<C as TunnelConfig>::ClientCertificate as CertificateConfig>::Error>> for NewClientError<C>
Source§fn from(
source: ToTlsServerError<<C::ClientCertificate as CertificateConfig>::Error>,
) -> Self
fn from( source: ToTlsServerError<<C::ClientCertificate as CertificateConfig>::Error>, ) -> Self
Converts to this type from the input type.
Source§impl<C: TunnelConfig> NamedEnumValues for NewClientError<C>
impl<C: TunnelConfig> NamedEnumValues for NewClientError<C>
Source§impl<C: TunnelConfig> NamedType for NewClientError<C>
impl<C: TunnelConfig> NamedType for NewClientError<C>
Auto Trait Implementations§
impl<C> !RefUnwindSafe for NewClientError<C>
impl<C> !UnwindSafe for NewClientError<C>
impl<C> Freeze for NewClientError<C>where
<<C as TunnelConfig>::ClientCertificate as CertificateConfig>::Error: Freeze,
<<C as ClientConfig>::GatewayPki as TrustedStoreConfig>::Error: Freeze,
impl<C> Send for NewClientError<C>
impl<C> Sync for NewClientError<C>
impl<C> Unpin for NewClientError<C>where
<<C as TunnelConfig>::ClientCertificate as CertificateConfig>::Error: Unpin,
<<C as ClientConfig>::GatewayPki as TrustedStoreConfig>::Error: Unpin,
impl<C> UnsafeUnpin for NewClientError<C>where
<<C as TunnelConfig>::ClientCertificate as CertificateConfig>::Error: UnsafeUnpin,
<<C as ClientConfig>::GatewayPki as TrustedStoreConfig>::Error: UnsafeUnpin,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> 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