pub struct PreparedBinding { /* private fields */ }Expand description
One provider-specific binding prepared by an Execution Adapter.
Implementations§
Source§impl PreparedBinding
impl PreparedBinding
Sourcepub fn new(
consumer_instance: impl Into<String>,
provider_instance: impl Into<String>,
endpoint: Rc<dyn NativeRequestEndpoint>,
) -> Self
pub fn new( consumer_instance: impl Into<String>, provider_instance: impl Into<String>, endpoint: Rc<dyn NativeRequestEndpoint>, ) -> Self
Binds one consumer to the endpoint prepared for one exact provider Instance.
Sourcepub fn consumer_instance(&self) -> &str
pub fn consumer_instance(&self) -> &str
Returns the App-local consumer Instance selected by the Plan.
Sourcepub fn provider_instance(&self) -> &str
pub fn provider_instance(&self) -> &str
Returns the App-local provider Instance selected by the Plan.
Sourcepub fn endpoint(&self) -> Rc<dyn NativeRequestEndpoint>
pub fn endpoint(&self) -> Rc<dyn NativeRequestEndpoint>
Returns the exact prepared endpoint referenced by this binding.
Trait Implementations§
Source§impl Clone for PreparedBinding
impl Clone for PreparedBinding
Source§fn clone(&self) -> PreparedBinding
fn clone(&self) -> PreparedBinding
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 PreparedBinding
impl !Send for PreparedBinding
impl !Sync for PreparedBinding
impl !UnwindSafe for PreparedBinding
impl Freeze for PreparedBinding
impl Unpin for PreparedBinding
impl UnsafeUnpin for PreparedBinding
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