argan_core/
lib.rs

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