error_kind/traits/context.rs
1// =============================================================================
2// USES
3// =============================================================================
4
5// -----------------------------------------------------------------------------
6use core::fmt::{Debug, Display};
7
8// =============================================================================
9// TRAITS
10// =============================================================================
11
12/// A marker trait denoting a piece of context information.
13///
14/// These types are supposed to be passed into the [`ErrorContext`] functions.
15///
16/// [`ErrorContext`]: crate::ErrorContext
17pub trait Context: Debug + Display + Send + Sync + 'static {}
18
19// =============================================================================
20// TRAIT IMPLS
21// =============================================================================
22
23// -----------------------------------------------------------------------------
24impl<T: Debug + Display + Send + Sync + 'static> Context for T {}