pub enum GatewayError<C: GatewayConfig> {
EnableTracing(EnableTracingError),
RootCa(Box<dyn Error>),
IssuerConfig(IssuerConfigError<C::ClientCertificateIssuerConfig>),
ToSocketAddrs {
host: String,
port: u16,
error: Error,
},
ToTlsServerConfig(ToTlsServerError<<C::TlsConfig as CertificateConfig>::Error>),
ToTlsClientConfig(ToTlsClientError<<C::RootCaConfig as TrustedStoreConfig>::Error>),
CachedTrustedStoreConfig(<C::ClientCertificateIssuerConfig as TrustedStoreConfig>::Error),
RunGatewayError(RunGatewayError),
}Variants§
EnableTracing(EnableTracingError)
RootCa(Box<dyn Error>)
IssuerConfig(IssuerConfigError<C::ClientCertificateIssuerConfig>)
ToSocketAddrs
ToTlsServerConfig(ToTlsServerError<<C::TlsConfig as CertificateConfig>::Error>)
ToTlsClientConfig(ToTlsClientError<<C::RootCaConfig as TrustedStoreConfig>::Error>)
CachedTrustedStoreConfig(<C::ClientCertificateIssuerConfig as TrustedStoreConfig>::Error)
RunGatewayError(RunGatewayError)
Trait Implementations§
Source§impl<C: Debug + GatewayConfig> Debug for GatewayError<C>
impl<C: Debug + GatewayConfig> Debug for GatewayError<C>
Source§impl<C: GatewayConfig> Display for GatewayError<C>where
IssuerConfigError<C::ClientCertificateIssuerConfig>: Display,
ToTlsServerError<<C::TlsConfig as CertificateConfig>::Error>: Display,
ToTlsClientError<<C::RootCaConfig as TrustedStoreConfig>::Error>: Display,
<C::ClientCertificateIssuerConfig as TrustedStoreConfig>::Error: Display,
impl<C: GatewayConfig> Display for GatewayError<C>where
IssuerConfigError<C::ClientCertificateIssuerConfig>: Display,
ToTlsServerError<<C::TlsConfig as CertificateConfig>::Error>: Display,
ToTlsClientError<<C::RootCaConfig as TrustedStoreConfig>::Error>: Display,
<C::ClientCertificateIssuerConfig as TrustedStoreConfig>::Error: Display,
Source§impl<C: GatewayConfig> Error for GatewayError<C>where
IssuerConfigError<C::ClientCertificateIssuerConfig>: Error + 'static,
ToTlsServerError<<C::TlsConfig as CertificateConfig>::Error>: Error + 'static,
ToTlsClientError<<C::RootCaConfig as TrustedStoreConfig>::Error>: Error + 'static,
Self: Debug + Display,
impl<C: GatewayConfig> Error for GatewayError<C>where
IssuerConfigError<C::ClientCertificateIssuerConfig>: Error + 'static,
ToTlsServerError<<C::TlsConfig as CertificateConfig>::Error>: Error + 'static,
ToTlsClientError<<C::RootCaConfig as TrustedStoreConfig>::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: GatewayConfig> From<EnableTracingError> for GatewayError<C>
impl<C: GatewayConfig> From<EnableTracingError> for GatewayError<C>
Source§fn from(source: EnableTracingError) -> Self
fn from(source: EnableTracingError) -> Self
Converts to this type from the input type.
Source§impl<C: GatewayConfig> From<RunGatewayError> for GatewayError<C>
impl<C: GatewayConfig> From<RunGatewayError> for GatewayError<C>
Source§fn from(source: RunGatewayError) -> Self
fn from(source: RunGatewayError) -> Self
Converts to this type from the input type.
Source§impl<C: GatewayConfig> From<ToTlsClientError<<<C as GatewayConfig>::RootCaConfig as TrustedStoreConfig>::Error>> for GatewayError<C>
impl<C: GatewayConfig> From<ToTlsClientError<<<C as GatewayConfig>::RootCaConfig as TrustedStoreConfig>::Error>> for GatewayError<C>
Source§fn from(
source: ToTlsClientError<<C::RootCaConfig as TrustedStoreConfig>::Error>,
) -> Self
fn from( source: ToTlsClientError<<C::RootCaConfig as TrustedStoreConfig>::Error>, ) -> Self
Converts to this type from the input type.
Source§impl<C: GatewayConfig> From<ToTlsServerError<<<C as GatewayConfig>::TlsConfig as CertificateConfig>::Error>> for GatewayError<C>
impl<C: GatewayConfig> From<ToTlsServerError<<<C as GatewayConfig>::TlsConfig as CertificateConfig>::Error>> for GatewayError<C>
Source§fn from(
source: ToTlsServerError<<C::TlsConfig as CertificateConfig>::Error>,
) -> Self
fn from( source: ToTlsServerError<<C::TlsConfig as CertificateConfig>::Error>, ) -> Self
Converts to this type from the input type.
Source§impl<C: GatewayConfig> NamedEnumValues for GatewayError<C>
impl<C: GatewayConfig> NamedEnumValues for GatewayError<C>
Source§impl<C: GatewayConfig> NamedType for GatewayError<C>
impl<C: GatewayConfig> NamedType for GatewayError<C>
Auto Trait Implementations§
impl<C> Freeze for GatewayError<C>where
<<C as GatewayConfig>::ClientCertificateIssuerConfig as TrustedStoreConfig>::Error: Freeze,
<<C as GatewayConfig>::ClientCertificateIssuerConfig as CertificateConfig>::Error: Freeze,
<<C as GatewayConfig>::TlsConfig as CertificateConfig>::Error: Freeze,
<<C as GatewayConfig>::RootCaConfig as TrustedStoreConfig>::Error: Freeze,
impl<C> !RefUnwindSafe for GatewayError<C>
impl<C> !Send for GatewayError<C>
impl<C> !Sync for GatewayError<C>
impl<C> Unpin for GatewayError<C>where
<<C as GatewayConfig>::ClientCertificateIssuerConfig as TrustedStoreConfig>::Error: Unpin,
<<C as GatewayConfig>::ClientCertificateIssuerConfig as CertificateConfig>::Error: Unpin,
<<C as GatewayConfig>::TlsConfig as CertificateConfig>::Error: Unpin,
<<C as GatewayConfig>::RootCaConfig as TrustedStoreConfig>::Error: Unpin,
impl<C> !UnwindSafe for GatewayError<C>
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
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