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