#[non_exhaustive]pub enum ExporterBuildError {
ThreadSpawnFailed,
NoHttpClient,
UnsupportedCompressionAlgorithm(String),
InvalidUri(String, String),
InternalFailure(String),
}
Expand description
Errors that can occur while building an exporter.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ThreadSpawnFailed
Spawning a new thread failed.
NoHttpClient
No Http client specified.
UnsupportedCompressionAlgorithm(String)
Unsupported compression algorithm.
InvalidUri(String, String)
Available on crate features
grpc-tonic
or http-proto
or http-json
only.Invalid URI.
InternalFailure(String)
Failed due to an internal error. The error message is intended for logging purposes only and should not be used to make programmatic decisions. It is implementation-specific and subject to change without notice. Consumers of this error should not rely on its content beyond logging.
Trait Implementations§
Source§impl Debug for ExporterBuildError
impl Debug for ExporterBuildError
Source§impl Display for ExporterBuildError
impl Display for ExporterBuildError
Source§impl Error for ExporterBuildError
impl Error for ExporterBuildError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for ExporterBuildError
impl RefUnwindSafe for ExporterBuildError
impl Send for ExporterBuildError
impl Sync for ExporterBuildError
impl Unpin for ExporterBuildError
impl UnwindSafe for ExporterBuildError
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
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