aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/di_container/asynchronous/mod.rs6
-rw-r--r--src/di_container/blocking/mod.rs2
2 files changed, 6 insertions, 2 deletions
diff --git a/src/di_container/asynchronous/mod.rs b/src/di_container/asynchronous/mod.rs
index 99a33be..7dda1d7 100644
--- a/src/di_container/asynchronous/mod.rs
+++ b/src/di_container/asynchronous/mod.rs
@@ -70,7 +70,9 @@ use crate::ptr::{SomeThreadsafePtr, TransientPtr};
pub mod binding;
pub mod prelude;
-/// Dependency injection container interface.
+/// Async dependency injection container interface.
+///
+/// **This trait is sealed and cannot be implemented for types outside this crate.**
#[async_trait]
pub trait IAsyncDIContainer<DependencyHistoryType>:
Sized + 'static + Send + Sync + details::DIContainerInternals<DependencyHistoryType>
@@ -126,7 +128,7 @@ where
Interface: 'static + ?Sized + Send + Sync;
}
-/// Dependency injection container.
+/// Async dependency injection container.
pub struct AsyncDIContainer
{
binding_storage:
diff --git a/src/di_container/blocking/mod.rs b/src/di_container/blocking/mod.rs
index 6338118..a54912b 100644
--- a/src/di_container/blocking/mod.rs
+++ b/src/di_container/blocking/mod.rs
@@ -66,6 +66,8 @@ pub mod binding;
pub mod prelude;
/// Blocking dependency injection container interface.
+///
+/// **This trait is sealed and cannot be implemented for types outside this crate.**
pub trait IDIContainer<DependencyHistoryType>:
Sized + 'static + details::DIContainerInternals<DependencyHistoryType>
where