pub struct LazyLoadedModule { /* private fields */ }Expand description
Provider-only reference returned by LazyModuleLoader.
Implementations§
Source§impl LazyLoadedModule
impl LazyLoadedModule
Sourcepub fn module_ref(&self) -> &ModuleRef
pub fn module_ref(&self) -> &ModuleRef
Provider container for the loaded module.
Sourcepub fn get_named<T>(&self, token: &str) -> Result<Arc<T>>
pub fn get_named<T>(&self, token: &str) -> Result<Arc<T>>
Resolve a named provider from the loaded module.
Sourcepub fn get_optional<T>(&self) -> Result<Option<Arc<T>>>
pub fn get_optional<T>(&self) -> Result<Option<Arc<T>>>
Resolve a typed provider when it is present in the loaded module graph.
Trait Implementations§
Source§impl Clone for LazyLoadedModule
impl Clone for LazyLoadedModule
Source§fn clone(&self) -> LazyLoadedModule
fn clone(&self) -> LazyLoadedModule
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LazyLoadedModule
impl RefUnwindSafe for LazyLoadedModule
impl Send for LazyLoadedModule
impl Sync for LazyLoadedModule
impl Unpin for LazyLoadedModule
impl UnsafeUnpin for LazyLoadedModule
impl UnwindSafe for LazyLoadedModule
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