pub struct Singleton<T> { /* private fields */ }Expand description
Singleton dependencies.
This dependency is created only once for the specified registry. It’s created lazily on-demand.
Implementations§
Trait Implementations§
Source§impl<T: RegisterableSingleton> Dep for Singleton<T>
impl<T: RegisterableSingleton> Dep for Singleton<T>
Source§impl<T: RegisterableSingleton> Deref for Singleton<T>
impl<T: RegisterableSingleton> Deref for Singleton<T>
Source§impl<T: RegisterableSingleton> DerefMut for Singleton<T>
impl<T: RegisterableSingleton> DerefMut for Singleton<T>
Auto Trait Implementations§
impl<T> Freeze for Singleton<T>
impl<T> RefUnwindSafe for Singleton<T>where
T: RefUnwindSafe,
impl<T> Send for Singleton<T>
impl<T> Sync for Singleton<T>
impl<T> Unpin for Singleton<T>
impl<T> UnwindSafe for Singleton<T>where
T: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more