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: String
The name of the stream that the event is in.
kind: EventKind
The kind of event.
data: Bytes
The 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
CacheRecord
Auto 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§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