pub enum RealtimeEvent {
DocumentChanged {
key: String,
replica_id: ReplicaId,
timestamp: DateTime<Utc>,
change_type: ChangeType,
},
UserJoined {
replica_id: ReplicaId,
timestamp: DateTime<Utc>,
user_info: Option<UserInfo>,
},
UserLeft {
replica_id: ReplicaId,
timestamp: DateTime<Utc>,
},
SyncStarted {
replica_id: ReplicaId,
timestamp: DateTime<Utc>,
},
SyncCompleted {
replica_id: ReplicaId,
timestamp: DateTime<Utc>,
changes_synced: usize,
},
ConflictDetected {
key: String,
replica_id: ReplicaId,
timestamp: DateTime<Utc>,
conflict_type: String,
},
}Expand description
Real-time synchronization event
Variants§
DocumentChanged
Document changed
UserJoined
User joined
UserLeft
User left
SyncStarted
Sync started
SyncCompleted
Sync completed
ConflictDetected
Conflict detected
Trait Implementations§
Source§impl Clone for RealtimeEvent
impl Clone for RealtimeEvent
Source§fn clone(&self) -> RealtimeEvent
fn clone(&self) -> RealtimeEvent
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 moreSource§impl Debug for RealtimeEvent
impl Debug for RealtimeEvent
Source§impl<'de> Deserialize<'de> for RealtimeEvent
impl<'de> Deserialize<'de> for RealtimeEvent
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
Auto Trait Implementations§
impl Freeze for RealtimeEvent
impl RefUnwindSafe for RealtimeEvent
impl Send for RealtimeEvent
impl Sync for RealtimeEvent
impl Unpin for RealtimeEvent
impl UnwindSafe for RealtimeEvent
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