pub struct Event {
pub stream_name: String,
pub kind: EventKind,
pub data: Bytes,
}Expand description
An event in a stream. This is slimmer than the EventRecord type, and is
used for most public interactions with events.
Fields§
§stream_name: StringThe name of the stream that the event is in.
kind: EventKindThe kind of event.
data: BytesThe main data of the event.
Implementations§
Trait Implementations§
Source§impl From<Event> for EventRecord
impl From<Event> for EventRecord
Source§impl IntoCache for Event
impl IntoCache for Event
Source§fn into_cache(self) -> CacheRecord
fn into_cache(self) -> CacheRecord
Consume the type, producing a
CacheRecordAuto Trait Implementations§
impl !Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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> IntoEvent for T
impl<T> IntoEvent for T
Source§fn into_event(self) -> Event
fn into_event(self) -> Event
Consume the type, producing an
Event