pub struct EventSinkEmitter {
pub runtime_handle: Handle,
pub sink: Arc<dyn EventSink>,
pub jsonl_sink: Option<Arc<dyn EventSink>>,
}Expand description
Adapter from the proxy’s synchronous L7DecisionEmitter trait to the
supervisor’s async cellos_core::ports::EventSink pipeline. Mirrors
crate::dns_proxy::spawn::EventSinkEmitter one-for-one.
Fields§
§runtime_handle: Handle§sink: Arc<dyn EventSink>§jsonl_sink: Option<Arc<dyn EventSink>>Implementations§
Trait Implementations§
Source§impl L7DecisionEmitter for EventSinkEmitter
impl L7DecisionEmitter for EventSinkEmitter
Source§fn emit(&self, event: CloudEventV1)
fn emit(&self, event: CloudEventV1)
Publish a single CloudEvent. Implementations should not block.
Auto Trait Implementations§
impl Freeze for EventSinkEmitter
impl !RefUnwindSafe for EventSinkEmitter
impl Send for EventSinkEmitter
impl Sync for EventSinkEmitter
impl Unpin for EventSinkEmitter
impl UnsafeUnpin for EventSinkEmitter
impl !UnwindSafe for EventSinkEmitter
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more