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