pub struct EventEnvelope<I> {
pub client: Option<ClientEvent>,
pub internal: Option<I>,
pub context: EventContext,
}Expand description
One bus item. A write may carry a public event, an internal fact, or both.
Fields§
§client: Option<ClientEvent>§internal: Option<I>§context: EventContextImplementations§
Source§impl<I> EventEnvelope<I>
impl<I> EventEnvelope<I>
pub fn new( client: Option<ClientEvent>, internal: Option<I>, context: EventContext, ) -> Self
Trait Implementations§
Source§impl<I: Clone> Clone for EventEnvelope<I>
impl<I: Clone> Clone for EventEnvelope<I>
Source§fn clone(&self) -> EventEnvelope<I>
fn clone(&self) -> EventEnvelope<I>
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<I: Debug> Debug for EventEnvelope<I>
impl<I: Debug> Debug for EventEnvelope<I>
Source§impl<I: PartialEq> PartialEq for EventEnvelope<I>
impl<I: PartialEq> PartialEq for EventEnvelope<I>
Source§fn eq(&self, other: &EventEnvelope<I>) -> bool
fn eq(&self, other: &EventEnvelope<I>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<I: Eq> Eq for EventEnvelope<I>
impl<I> StructuralPartialEq for EventEnvelope<I>
Auto Trait Implementations§
impl<I> Freeze for EventEnvelope<I>where
I: Freeze,
impl<I> RefUnwindSafe for EventEnvelope<I>where
I: RefUnwindSafe,
impl<I> Send for EventEnvelope<I>where
I: Send,
impl<I> Sync for EventEnvelope<I>where
I: Sync,
impl<I> Unpin for EventEnvelope<I>where
I: Unpin,
impl<I> UnsafeUnpin for EventEnvelope<I>where
I: UnsafeUnpin,
impl<I> UnwindSafe for EventEnvelope<I>where
I: UnwindSafe,
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more