pub enum MessageEvent {
MessageReceived {
message: MessageFull,
stream_height: String,
},
MessageSent {
message: MessageFull,
publish_result: PublishResult,
},
CatchUpMessage {
message: MessageFull,
request_id: u32,
},
StreamHeightUpdate {
height: String,
},
CatchUpCompleted {
request_id: u32,
},
}Expand description
Comprehensive message event that covers all message flows for persistence and monitoring.
This enum captures every type of message activity in the MessagesManager, enabling complete message persistence and audit trails.
Variants§
MessageReceived
Message received from subscription stream
MessageSent
Message sent by this client
CatchUpMessage
Historical message from catch-up
StreamHeightUpdate
Stream height update
CatchUpCompleted
Catch-up completed
Trait Implementations§
Source§impl Clone for MessageEvent
impl Clone for MessageEvent
Source§fn clone(&self) -> MessageEvent
fn clone(&self) -> MessageEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MessageEvent
impl RefUnwindSafe for MessageEvent
impl Send for MessageEvent
impl Sync for MessageEvent
impl Unpin for MessageEvent
impl UnwindSafe for MessageEvent
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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