Skip to main content

ExecutionEventEmitter

Struct ExecutionEventEmitter 

Source
pub struct ExecutionEventEmitter<'sink, S = dyn ExecutionEventSink>{ /* private fields */ }

Implementations§

Source§

impl<'sink, S> ExecutionEventEmitter<'sink, S>

Source

pub fn new(sink: &'sink S, run_id: RunId, request_id: RequestIdentity) -> Self

Source§

impl ExecutionEventEmitter<'static, dyn ExecutionEventSink>

Source

pub fn from_shared( sink: Arc<dyn ExecutionEventSink>, run_id: RunId, request_id: RequestIdentity, ) -> ExecutionEventEmitter<'static>

Creates a durable emitter that may be owned by a request/session.

The borrowed constructor remains useful for bounded validation. Product runtimes use this form so event authority cannot outlive its sink.

Source

pub fn from_shared_with_capture_policy( sink: Arc<dyn ExecutionEventSink>, run_id: RunId, request_id: RequestIdentity, capture_policy: ExecutionEventCapturePolicy, ) -> ExecutionEventEmitter<'static>

Source§

impl<'sink, S> ExecutionEventEmitter<'sink, S>

Source

pub fn emit( &mut self, event: ExecutionEvent, context: &TrustedExecutionEventContext<'_>, ) -> Result<(), ExecutionEventSinkError>

Source

pub fn emit_batch( &mut self, events: Vec<ExecutionEvent>, contexts: &[TrustedExecutionEventContext<'_>], ) -> Result<(), ExecutionEventSinkError>

Source

pub fn cursor(&self) -> &ExecutionEventCursor

Source

pub const fn sink_failed(&self) -> bool

Auto Trait Implementations§

§

impl<'sink, S> Freeze for ExecutionEventEmitter<'sink, S>
where ExecutionEventSinkHandle<'sink, S>: Freeze, S: ?Sized,

§

impl<'sink, S> RefUnwindSafe for ExecutionEventEmitter<'sink, S>
where ExecutionEventSinkHandle<'sink, S>: RefUnwindSafe, S: ?Sized,

§

impl<'sink, S> Send for ExecutionEventEmitter<'sink, S>
where ExecutionEventSinkHandle<'sink, S>: Send, S: ?Sized,

§

impl<'sink, S> Sync for ExecutionEventEmitter<'sink, S>
where ExecutionEventSinkHandle<'sink, S>: Sync, S: ?Sized,

§

impl<'sink, S> Unpin for ExecutionEventEmitter<'sink, S>
where ExecutionEventSinkHandle<'sink, S>: Unpin, S: ?Sized,

§

impl<'sink, S> UnsafeUnpin for ExecutionEventEmitter<'sink, S>
where ExecutionEventSinkHandle<'sink, S>: UnsafeUnpin, S: ?Sized,

§

impl<'sink, S> UnwindSafe for ExecutionEventEmitter<'sink, S>
where ExecutionEventSinkHandle<'sink, S>: UnwindSafe, S: ?Sized,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V