We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38a39e0 commit ea06266Copy full SHA for ea06266
volga/src/di/dc.rs
@@ -19,15 +19,10 @@ use std::{
19
sync::Arc
20
};
21
22
-/// `Dc` stands for Dependency Container.
+/// `Dc` stands for Dependency Container.
23
+///
24
/// This struct wraps an injectable type `T` that is **shared** between all handlers
25
/// through an [`Arc`].
-///
26
-/// Use this version for long-lived or shared services (e.g., caches, database pools, or
27
-/// other stateful components).
28
29
-/// Unlike [`DcOwned`], which clones the value from the container, `Dc` provides a
30
-/// cheap-to-clone shared reference via [`Arc<T>`].
31
///
32
/// # Example
33
/// ```no_run
0 commit comments