diff options
author | HampusM <hampus@hampusmat.com> | 2022-10-30 19:01:31 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-10-30 19:01:31 +0100 |
commit | 20d0d973c0525e45ed1df6e6d306a8c0ee5d61fe (patch) | |
tree | 21fa8284e027066073a06c2c950483001ffad4ea /src/di_container/asynchronous | |
parent | aa548ded39c7ba1927019c748c359523b21d59e8 (diff) |
docs: add sealed notices to DI container interfaces
Diffstat (limited to 'src/di_container/asynchronous')
-rw-r--r-- | src/di_container/asynchronous/mod.rs | 6 |
1 files changed, 4 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: |