Enum opentelemetry_api::logs::LogError
source · #[non_exhaustive]pub enum LogError {
ExportFailed(Box<dyn ExportError>),
ExportTimedOut(Duration),
Other(Box<dyn Error + Send + Sync + 'static>),
}
Expand description
Errors returned by the log SDK.
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.
ExportFailed(Box<dyn ExportError>)
Export failed with the error returned by the exporter.
ExportTimedOut(Duration)
Export failed to finish after certain period and processor stopped the export.
Other(Box<dyn Error + Send + Sync + 'static>)
Other errors propagated from log SDK that weren’t covered above.
Trait Implementations§
source§impl Error for LogError
impl Error for LogError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<T> From<T> for LogErrorwhere
T: ExportError,
impl<T> From<T> for LogErrorwhere T: ExportError,
source§impl<T> From<TrySendError<T>> for LogError
impl<T> From<TrySendError<T>> for LogError
source§fn from(err: TrySendError<T>) -> Self
fn from(err: TrySendError<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for LogError
impl Send for LogError
impl Sync for LogError
impl Unpin for LogError
impl !UnwindSafe for LogError
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