pub struct LazyResourcePlugin<B, T: LazyResource<B>> { /* private fields */ }Expand description
Registers the system that lazily constructs T once B and T::Deps
are available, and never again afterward.
Implementations§
Source§impl<B, T: LazyResource<B>> LazyResourcePlugin<B, T>
impl<B, T: LazyResource<B>> LazyResourcePlugin<B, T>
Trait Implementations§
Auto Trait Implementations§
impl<B, T> Freeze for LazyResourcePlugin<B, T>
impl<B, T> RefUnwindSafe for LazyResourcePlugin<B, T>where
B: RefUnwindSafe,
T: RefUnwindSafe,
impl<B, T> Send for LazyResourcePlugin<B, T>where
B: Send,
impl<B, T> Sync for LazyResourcePlugin<B, T>where
B: Sync,
impl<B, T> Unpin for LazyResourcePlugin<B, T>
impl<B, T> UnsafeUnpin for LazyResourcePlugin<B, T>
impl<B, T> UnwindSafe for LazyResourcePlugin<B, T>where
B: UnwindSafe,
T: UnwindSafe,
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