ferrunix_core/
object_builder.rs1#[cfg(not(feature = "tokio"))]
4#[path = "./object_builder_sync.rs"]
5pub(crate) mod inner;
6
7#[cfg(feature = "tokio")]
8#[path = "./object_builder_async.rs"]
9pub(crate) mod inner;
10
11pub(crate) use inner::*;
12
13#[cfg(not(feature = "tokio"))]
15pub(crate) enum Object {
16 Transient(crate::types::BoxedTransientBuilder),
18 Singleton(crate::types::BoxedSingletonGetter),
20}
21
22#[cfg(feature = "tokio")]
24pub(crate) enum Object {
25 AsyncTransient(Box<dyn AsyncTransientBuilder + Send + Sync>),
27 AsyncSingleton(Box<dyn AsyncSingleton + Send + Sync>),
29}