pub struct Dependency { /* private fields */ }Expand description
One exact Host-selected provider route.
Implementations§
Source§impl Dependency
impl Dependency
Sourcepub fn requirement_id(&self) -> &str
pub fn requirement_id(&self) -> &str
Stable consumer-local role declared by the Plugin.
Sourcepub fn provider_instance(&self) -> &str
pub fn provider_instance(&self) -> &str
Exact provider instance selected by the immutable Plan.
Sourcepub fn client<C: DependencyClient>(self) -> Result<C, String>
pub fn client<C: DependencyClient>(self) -> Result<C, String>
Converts this exact route into its generated typed client.
Trait Implementations§
Source§impl Clone for Dependency
impl Clone for Dependency
Source§impl Debug for Dependency
impl Debug for Dependency
impl Eq for Dependency
Source§impl PartialEq for Dependency
impl PartialEq for Dependency
impl StructuralPartialEq for Dependency
Auto Trait Implementations§
impl Freeze for Dependency
impl RefUnwindSafe for Dependency
impl Send for Dependency
impl Sync for Dependency
impl Unpin for Dependency
impl UnsafeUnpin for Dependency
impl UnwindSafe for Dependency
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.