pub struct EventId(/* private fields */);Expand description
Unique identifier for an event, backed by a UUID v4.
Every Envelope is assigned an EventId at creation time.
IDs are random (not monotonic) - use Meta::timestamp()
for ordering.
EventId is Copy and cheap to pass around. Use Display
to get the UUID string representation, or as_u128() for the raw u128.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EventId
impl<'de> Deserialize<'de> for EventId
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<E: Event, T: Topic<E>> From<EventId> for EventMatcher<E, T>
Available on crate feature test-harness only.
impl<E: Event, T: Topic<E>> From<EventId> for EventMatcher<E, T>
Available on crate feature
test-harness only.Source§impl Ord for EventId
impl Ord for EventId
Source§impl PartialOrd for EventId
impl PartialOrd for EventId
impl Copy for EventId
impl Eq for EventId
impl StructuralPartialEq for EventId
Auto Trait Implementations§
impl Freeze for EventId
impl RefUnwindSafe for EventId
impl Send for EventId
impl Sync for EventId
impl Unpin for EventId
impl UnsafeUnpin for EventId
impl UnwindSafe for EventId
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