pub struct PluginDependency { /* private fields */ }Expand description
A deterministic dependency visible to one Plugin Instance.
Implementations§
Source§impl PluginDependency
impl PluginDependency
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<PluginDependencyHandle>
pub fn handle(&self) -> Option<PluginDependencyHandle>
Returns the resolved native endpoint handle when the Adapter supplied one.
Sourcepub fn stream_handle(&self) -> Option<PluginStreamDependencyHandle>
pub fn stream_handle(&self) -> Option<PluginStreamDependencyHandle>
Returns the resolved native stream endpoint handle when the Adapter supplied one.
Sourcepub fn event_handle(&self) -> Option<PluginEventDependencyHandle>
pub fn event_handle(&self) -> Option<PluginEventDependencyHandle>
Returns the resolved native Event endpoint handle when the Adapter supplied one.
Trait Implementations§
Source§impl Clone for PluginDependency
impl Clone for PluginDependency
Source§fn clone(&self) -> PluginDependency
fn clone(&self) -> PluginDependency
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 PluginDependency
impl !Send for PluginDependency
impl !Sync for PluginDependency
impl !UnwindSafe for PluginDependency
impl Freeze for PluginDependency
impl Unpin for PluginDependency
impl UnsafeUnpin for PluginDependency
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