# error.rs - source
Source of the Rust file `/home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.4.0/src/util/error.rs`.
Keywords: rust, rustlang, rust-lang

    1
    2
    3
    4
    5
    6
    7
    8
    9

    /// Error string explaining that the Tokio context hasn't been instantiated.
    pub(crate) const CONTEXT_MISSING_ERROR: &str =
        "there is no reactor running, must be called from the context of a Tokio 1.x runtime";

    // some combinations of features might not use this
    #[allow(dead_code)]
    /// Error string explaining that the Tokio context is shutting down and cannot drive timers.
    pub(crate) const RUNTIME_SHUTTING_DOWN_ERROR: &str =
        "A Tokio 1.x context was found, but it is being shutdown.";