pub enum GatewayError<C: GatewayConfig> {
EnableTracing(EnableTracingError),
RootCa(Box<dyn IsGlobalError>),
IssuerConfig(IssuerConfigError<<C::ClientCertificateIssuerConfig as HasDynamicSecurityConfig>::HasSecurityConfig>),
ToSocketAddrs {
host: String,
error: Error,
},
ToTlsServerConfig(ToTlsServerError<<C::TlsConfig as CertificateConfig>::Error>),
ToTlsClientConfig(ToTlsClientError<<C::RootCaConfig as TrustedStoreConfig>::Error>),
CachedTrustedStoreConfig(<<C::ClientCertificateIssuerConfig as HasDynamicSecurityConfig>::HasSecurityConfig as TrustedStoreConfig>::Error),
RunGatewayError(RunGatewayError),
}Variants§
EnableTracing(EnableTracingError)
RootCa(Box<dyn IsGlobalError>)
IssuerConfig(IssuerConfigError<<C::ClientCertificateIssuerConfig as HasDynamicSecurityConfig>::HasSecurityConfig>)
ToSocketAddrs
ToTlsServerConfig(ToTlsServerError<<C::TlsConfig as CertificateConfig>::Error>)
ToTlsClientConfig(ToTlsClientError<<C::RootCaConfig as TrustedStoreConfig>::Error>)
CachedTrustedStoreConfig(<<C::ClientCertificateIssuerConfig as HasDynamicSecurityConfig>::HasSecurityConfig 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 as HasDynamicSecurityConfig>::HasSecurityConfig>: Display,
ToTlsServerError<<C::TlsConfig as CertificateConfig>::Error>: Display,
ToTlsClientError<<C::RootCaConfig as TrustedStoreConfig>::Error>: Display,
<<C::ClientCertificateIssuerConfig as HasDynamicSecurityConfig>::HasSecurityConfig as TrustedStoreConfig>::Error: Display,
impl<C: GatewayConfig> Display for GatewayError<C>where
IssuerConfigError<<C::ClientCertificateIssuerConfig as HasDynamicSecurityConfig>::HasSecurityConfig>: Display,
ToTlsServerError<<C::TlsConfig as CertificateConfig>::Error>: Display,
ToTlsClientError<<C::RootCaConfig as TrustedStoreConfig>::Error>: Display,
<<C::ClientCertificateIssuerConfig as HasDynamicSecurityConfig>::HasSecurityConfig as TrustedStoreConfig>::Error: Display,
Source§impl<C: GatewayConfig> Error for GatewayError<C>where
IssuerConfigError<<C::ClientCertificateIssuerConfig as HasDynamicSecurityConfig>::HasSecurityConfig>: 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 as HasDynamicSecurityConfig>::HasSecurityConfig>: 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> !RefUnwindSafe for GatewayError<C>
impl<C> !UnwindSafe for GatewayError<C>
impl<C> Freeze for GatewayError<C>where
<<<C as GatewayConfig>::ClientCertificateIssuerConfig as HasDynamicSecurityConfig>::HasSecurityConfig as TrustedStoreConfig>::Error: Freeze,
<<<C as GatewayConfig>::ClientCertificateIssuerConfig as HasDynamicSecurityConfig>::HasSecurityConfig as CertificateConfig>::Error: Freeze,
<<C as GatewayConfig>::TlsConfig as CertificateConfig>::Error: Freeze,
<<C as GatewayConfig>::RootCaConfig as TrustedStoreConfig>::Error: Freeze,
impl<C> Send for GatewayError<C>
impl<C> Sync for GatewayError<C>
impl<C> Unpin for GatewayError<C>where
<<<C as GatewayConfig>::ClientCertificateIssuerConfig as HasDynamicSecurityConfig>::HasSecurityConfig as TrustedStoreConfig>::Error: Unpin,
<<<C as GatewayConfig>::ClientCertificateIssuerConfig as HasDynamicSecurityConfig>::HasSecurityConfig as CertificateConfig>::Error: Unpin,
<<C as GatewayConfig>::TlsConfig as CertificateConfig>::Error: Unpin,
<<C as GatewayConfig>::RootCaConfig as TrustedStoreConfig>::Error: Unpin,
impl<C> UnsafeUnpin for GatewayError<C>where
<<<C as GatewayConfig>::ClientCertificateIssuerConfig as HasDynamicSecurityConfig>::HasSecurityConfig as TrustedStoreConfig>::Error: UnsafeUnpin,
<<<C as GatewayConfig>::ClientCertificateIssuerConfig as HasDynamicSecurityConfig>::HasSecurityConfig as CertificateConfig>::Error: UnsafeUnpin,
<<C as GatewayConfig>::TlsConfig as CertificateConfig>::Error: UnsafeUnpin,
<<C as GatewayConfig>::RootCaConfig 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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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