pub struct BoundCapabilityClient<C> { /* private fields */ }Expand description
One typed Capability client paired with its App-local provider Instance key.
Implementations§
Source§impl<C> BoundCapabilityClient<C>
impl<C> BoundCapabilityClient<C>
Sourcepub fn new(
provider_instance: impl Into<String>,
client: C,
) -> BoundCapabilityClient<C>
pub fn new( provider_instance: impl Into<String>, client: C, ) -> BoundCapabilityClient<C>
Creates one Plan-bound client entry.
Sourcepub fn provider_instance(&self) -> &str
pub fn provider_instance(&self) -> &str
Returns the App-local provider Instance key selected by Composition.
Trait Implementations§
Source§impl<C> Debug for BoundCapabilityClient<C>where
C: Debug,
impl<C> Debug for BoundCapabilityClient<C>where
C: Debug,
Auto Trait Implementations§
impl<C> Freeze for BoundCapabilityClient<C>where
C: Freeze,
impl<C> RefUnwindSafe for BoundCapabilityClient<C>where
C: RefUnwindSafe,
impl<C> Send for BoundCapabilityClient<C>where
C: Send,
impl<C> Sync for BoundCapabilityClient<C>where
C: Sync,
impl<C> Unpin for BoundCapabilityClient<C>where
C: Unpin,
impl<C> UnsafeUnpin for BoundCapabilityClient<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for BoundCapabilityClient<C>where
C: 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