#[non_exhaustive]pub enum GrpcError {
Show 13 variants
Config(ConfigError),
Bind {
addr: SocketAddr,
source: Error,
},
Reflection(String),
Tls(String),
DuplicateService(String),
NotIdle(Lifecycle),
SharedListenerTaken(String),
SharedListenerNeedsH2(&'static str),
DuplicateClient(String),
ClientWithoutEndpoint {
name: String,
section: String,
},
DoubleWithoutClient(String),
ClientSetup {
name: String,
message: String,
},
AlreadyStarted,
}Expand description
A startup failure. Each one aborts boot.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Config(ConfigError)
The configuration is not valid.
Bind
The listener could not bind.
Reflection(String)
A reflection descriptor set is not valid.
Tls(String)
TLS could not be set up.
DuplicateService(String)
Two services have the same name, or a user service has the name of a plugin service (health or reflection).
NotIdle(Lifecycle)
The server is not in Idle: a shutdown came before or during start.
Another plugin (its config section) uses the shared listener.
Autumn’s TLS listener does not offer HTTP/2 (ALPN h2).
DuplicateClient(String)
Two registrations use one client name: with one type in one plugin, or in two plugins.
ClientWithoutEndpoint
A registered client has no endpoint and no test double.
DoubleWithoutClient(String)
A test double names a client that is not registered.
ClientSetup
A client channel could not be set up (for example, a TLS file).
AlreadyStarted
The startup hook ran twice.
Trait Implementations§
Source§impl Error for GrpcError
impl Error for GrpcError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<ConfigError> for GrpcError
impl From<ConfigError> for GrpcError
Source§fn from(source: ConfigError) -> Self
fn from(source: ConfigError) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for GrpcError
impl !UnwindSafe for GrpcError
impl Forget for GrpcError
impl Freeze for GrpcError
impl Send for GrpcError
impl Sync for GrpcError
impl Unpin for GrpcError
impl UnsafeUnpin for GrpcError
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
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Requestimpl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> Scoped for T
impl<T> Scoped for T
Source§fn scope(ctx: &PolicyContext) -> ScopeQuery<'_, Self>
fn scope(ctx: &PolicyContext) -> ScopeQuery<'_, Self>
ScopeQuery for this type. Resolves the
registered scope at .load() time, not here.