pub struct ModuleDependency { /* private fields */ }Expand description
A deterministic dependency visible to one Module Instance.
Implementations§
Source§impl ModuleDependency
impl ModuleDependency
Sourcepub fn capability_id(&self) -> &str
pub fn capability_id(&self) -> &str
Returns the Capability required by this dependency.
Sourcepub fn provider_instance(&self) -> &str
pub fn provider_instance(&self) -> &str
Returns the App-local provider Instance key.
Sourcepub const fn provider_order(&self) -> usize
pub const fn provider_order(&self) -> usize
Returns the deterministic provider order for a many binding.
Sourcepub fn handle(&self) -> Option<ModuleDependencyHandle>
pub fn handle(&self) -> Option<ModuleDependencyHandle>
Returns the resolved native endpoint handle when the Adapter supplied one.
Sourcepub fn stream_handle(&self) -> Option<ModuleStreamDependencyHandle>
pub fn stream_handle(&self) -> Option<ModuleStreamDependencyHandle>
Returns the resolved native stream endpoint handle when the Adapter supplied one.
Sourcepub fn event_handle(&self) -> Option<ModuleEventDependencyHandle>
pub fn event_handle(&self) -> Option<ModuleEventDependencyHandle>
Returns the resolved native Event endpoint handle when the Adapter supplied one.
Trait Implementations§
Source§impl Clone for ModuleDependency
impl Clone for ModuleDependency
Source§fn clone(&self) -> ModuleDependency
fn clone(&self) -> ModuleDependency
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 !RefUnwindSafe for ModuleDependency
impl !Send for ModuleDependency
impl !Sync for ModuleDependency
impl !UnwindSafe for ModuleDependency
impl Freeze for ModuleDependency
impl Unpin for ModuleDependency
impl UnsafeUnpin for ModuleDependency
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