pub enum AppEvent {
Emit {
name: String,
value_bytes: Vec<u8>,
},
Notify {
name: String,
},
}Expand description
App-Op-emitted events surfaced as EngineStep::AppEvent.
Application code constructs these via AppEvent::emit /
AppEvent::notify which reject framework-reserved topic
prefixes (bb., ai.bytesandbrains.) so the framework’s own
InfraEvent topic namespace can never be impersonated by user
publish calls (closes the trust-boundary requirement
in §Trust boundary). The struct variants stay constructible
directly for framework-internal forwarding paths that are not
crossing the application boundary.
Variants§
Emit
AppEmit(name, value_bytes) - full app event carrying bytes.
Notify
AppNotify(name) - marker-only notification.
Implementations§
Source§impl AppEvent
impl AppEvent
Sourcepub fn emit(
name: impl Into<String>,
value_bytes: Vec<u8>,
) -> Result<Self, AppEventError>
pub fn emit( name: impl Into<String>, value_bytes: Vec<u8>, ) -> Result<Self, AppEventError>
Construct an AppEvent::Emit, rejecting framework-reserved
topic prefixes. The trust boundary AppEvent::new referenced
in docs-plan/CORRECTED_ARCHITECTURE.md §Trust boundary.
Sourcepub fn notify(name: impl Into<String>) -> Result<Self, AppEventError>
pub fn notify(name: impl Into<String>) -> Result<Self, AppEventError>
Construct an AppEvent::Notify, rejecting framework-
reserved topic prefixes. See Self::emit.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AppEvent
impl RefUnwindSafe for AppEvent
impl Send for AppEvent
impl Sync for AppEvent
impl Unpin for AppEvent
impl UnsafeUnpin for AppEvent
impl UnwindSafe for AppEvent
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedComponent for T
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request