pub struct CoreEvent {
pub sub: Option<SubscriptionId>,
pub payload: Event,
}Expand description
An event produced by a sans-io core, before it is wrapped in an Envelope.
The connector’s emitter (brokapi_runtime::Emitter) adds the source label, schema version and
timestamps when it wraps the event.
Fields§
§sub: Option<SubscriptionId>The subscription the event belongs to, or None for an event that belongs to no
subscription (it is not buffered by a subscription policy downstream).
payload: EventThe event itself.
Trait Implementations§
impl StructuralPartialEq for CoreEvent
Auto Trait Implementations§
impl Freeze for CoreEvent
impl RefUnwindSafe for CoreEvent
impl Send for CoreEvent
impl Sync for CoreEvent
impl Unpin for CoreEvent
impl UnsafeUnpin for CoreEvent
impl UnwindSafe for CoreEvent
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