pub struct EventProbeEndpoint { /* private fields */ }Expand description
In-memory Event endpoint used by the conformance Adapter.
Implementations§
Source§impl EventProbeEndpoint
impl EventProbeEndpoint
pub fn new(recorder: EventProbeRecorder) -> Self
pub fn set_available(&self, available: bool)
Trait Implementations§
Source§impl Clone for EventProbeEndpoint
impl Clone for EventProbeEndpoint
Source§fn clone(&self) -> EventProbeEndpoint
fn clone(&self) -> EventProbeEndpoint
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 moreSource§impl Debug for EventProbeEndpoint
impl Debug for EventProbeEndpoint
Source§impl NativeEventEndpoint for EventProbeEndpoint
impl NativeEventEndpoint for EventProbeEndpoint
Source§fn capability_id(&self) -> &'static str
fn capability_id(&self) -> &'static str
Stable Capability series identity.
Source§fn descriptor_version(&self) -> &'static str
fn descriptor_version(&self) -> &'static str
Exact Descriptor version implemented by this endpoint.
Source§fn operations(&self) -> &'static [&'static str]
fn operations(&self) -> &'static [&'static str]
Exact stable Event Operation names implemented by this endpoint.
Source§fn publish(
&self,
operation: &str,
event: Box<dyn Any>,
_context: InvocationContext,
) -> LocalBoxFuture<'static, Result<(), RuntimeFailure>>
fn publish( &self, operation: &str, event: Box<dyn Any>, _context: InvocationContext, ) -> LocalBoxFuture<'static, Result<(), RuntimeFailure>>
Publishes one value after the endpoint has admitted it. Read more
Source§fn owns_event_admission(&self) -> bool
fn owns_event_admission(&self) -> bool
Returns whether the Adapter owns the subscriber’s admission queue. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for EventProbeEndpoint
impl !Send for EventProbeEndpoint
impl !Sync for EventProbeEndpoint
impl !UnwindSafe for EventProbeEndpoint
impl Freeze for EventProbeEndpoint
impl Unpin for EventProbeEndpoint
impl UnsafeUnpin for EventProbeEndpoint
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