pub struct Event {
pub header: Option<EventHeader>,
pub payload: Option<EventPayload>,
}
Expand description
Contains all information about a single event
Fields§
§header: Option<EventHeader>
§payload: Option<EventPayload>
Trait Implementations§
Source§impl TakeFrom<WireEvent> for Event
impl TakeFrom<WireEvent> for Event
Source§fn take_from(from: &WireEvent) -> Self
fn take_from(from: &WireEvent) -> Self
Converts from the given
T
, taking any resources that can’t be cloned.§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
conversion instead of calling
take_from
. Read moreAuto 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