1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
use std::{future::Future, pin::Pin};
// ----------
pub(crate) use std::error::Error as StdError;
pub(crate) use thiserror::Error as ImplError;
// --------------------------------------------------------------------------------
// --------------------------------------------------------------------------------
#[macro_use]
pub(crate) mod macros;
pub mod body;
pub mod http;
pub mod request;
pub mod response;
// --------------------------------------------------------------------------------
// --------------------------------------------------------------------------------
pub type BoxedError = Box<dyn StdError + Send + Sync>;
pub type BoxedFuture<T> = Pin<Box<dyn Future<Output = T> + Send>>;
// --------------------------------------------------------------------------------
// --------------------------------------------------
// Marker
pub(crate) mod marker {
pub struct Private;
}
// --------------------------------------------------
// Used when expecting a valid value in Options or Results.
pub(crate) const SCOPE_VALIDITY: &str = "scope validity";
// --------------------------------------------------------------------------------