pub enum Message {
Command {
id: UUID4,
ts_init: UnixNanos,
},
Document {
id: UUID4,
ts_init: UnixNanos,
},
Event {
id: UUID4,
ts_init: UnixNanos,
ts_event: UnixNanos,
},
Request {
id: UUID4,
ts_init: UnixNanos,
},
Response {
id: UUID4,
ts_init: UnixNanos,
correlation_id: UUID4,
},
}
Expand description
Represents different types of messages in the system.
Variants§
Command
A command message with an identifier and initialization timestamp.
Fields
Document
A document message with an identifier and initialization timestamp.
Fields
Event
An event message with identifiers and timestamps.
Fields
Request
A request message with an identifier and initialization timestamp.
Fields
Response
A response message with identifiers, timestamps, and correlation.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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