• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /// Error string explaining that the Tokio context hasn't been instantiated.
2 pub(crate) const CONTEXT_MISSING_ERROR: &str =
3     "there is no reactor running, must be called from the context of a Tokio 1.x runtime";
4 
5 // some combinations of features might not use this
6 #[allow(dead_code)]
7 /// Error string explaining that the Tokio context is shutting down and cannot drive timers.
8 pub(crate) const RUNTIME_SHUTTING_DOWN_ERROR: &str =
9     "A Tokio 1.x context was found, but it is being shutdown.";
10 
11 // some combinations of features might not use this
12 #[allow(dead_code)]
13 /// Error string explaining that the Tokio context is not available because the
14 /// thread-local storing it has been destroyed. This usually only happens during
15 /// destructors of other thread-locals.
16 pub(crate) const THREAD_LOCAL_DESTROYED_ERROR: &str =
17     "The Tokio context thread-local variable has been destroyed.";
18