pub struct EventEnvelope {
pub meta: EventMeta,
pub payload: Bytes,
}Expand description
A straightforward envelope pairing an EventMeta with its
payload tail. Use this when CortEX’s richer envelope type is not
needed (tests, simple callers, the v1 adapter wire-up).
Fields§
§meta: EventMetaThe 20-byte header that will land at the start of the RedEX payload.
payload: BytesType-specific bytes following the header.
Implementations§
Trait Implementations§
Source§impl Clone for EventEnvelope
impl Clone for EventEnvelope
Source§fn clone(&self) -> EventEnvelope
fn clone(&self) -> EventEnvelope
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EventEnvelope
impl Debug for EventEnvelope
Source§impl IntoRedexPayload for EventEnvelope
impl IntoRedexPayload for EventEnvelope
Source§fn into_redex_payload(self) -> (EventMeta, Bytes)
fn into_redex_payload(self) -> (EventMeta, Bytes)
Consume
self and return the (meta, tail) pair.Auto Trait Implementations§
impl !Freeze for EventEnvelope
impl RefUnwindSafe for EventEnvelope
impl Send for EventEnvelope
impl Sync for EventEnvelope
impl Unpin for EventEnvelope
impl UnsafeUnpin for EventEnvelope
impl UnwindSafe for EventEnvelope
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