axum_starter/prepare_sets/
mod.rs1use std::pin::Pin;
2
3use futures::Future;
4
5use crate::{prepare_behave::EffectContainer, PrepareError, StateCollector};
6
7pub(crate) mod concurrent_set;
8pub(crate) mod serial_set;
9
10pub type BoxFuture<T> = Pin<Box<dyn Future<Output = T> + 'static>>;
11
12pub type ContainerResult<Route, Layer> = Result<EffectContainer<Route, Layer>, PrepareError>;
13
14pub type ContainerFuture<R, L> = BoxFuture<ContainerResult<R, L>>;
15
16pub type StateContainerResult = Result<StateCollector, PrepareError>;
17pub type StateContainerFuture = BoxFuture<StateContainerResult>;