//! Sessions Core
#![forbid(unsafe_code)]
/// Set if the session was unchanged or inited.
pub const UNCHANGED: u8 = 0;
/// Set if the session has been destroied.
pub const PURGED: u8 = 1;
/// Set if the session has been renewed.
pub const RENEWED: u8 = 2;
/// Set if the session has been changed.
pub const CHANGED: u8 = 3;
/// A data state
pub type Data = std::collections::BTreeMap<String, serde_json::Value>;
mod error;
mod state;
mod storage;
mod store;
pub use async_trait::async_trait;
pub use error::Error;
pub use serde_json::Value;
pub use state::State;
pub use storage::Storage;
pub use store::Store;
#[cfg(feature = "session")]
mod session;
#[cfg(feature = "session")]
pub use session::Session;