pub enum DiscoveryEvent {
NewSession {
summary: SessionSummary,
},
SessionUpdated {
session_id: String,
provider_name: String,
is_new: bool,
mod_time: Option<String>,
},
SessionRemoved {
session_id: String,
},
}Expand description
NOTE: DiscoveryEvent design for real-time session tracking
- SessionUpdated.is_new: True if first time seeing this session_id in this process
- SessionUpdated.mod_time: File modification timestamp for “most recently updated” detection
- Watch handlers use mod_time to switch to actively updated sessions, not just is_new
Variants§
Trait Implementations§
Source§impl Clone for DiscoveryEvent
impl Clone for DiscoveryEvent
Source§fn clone(&self) -> DiscoveryEvent
fn clone(&self) -> DiscoveryEvent
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 DiscoveryEvent
impl RefUnwindSafe for DiscoveryEvent
impl Send for DiscoveryEvent
impl Sync for DiscoveryEvent
impl Unpin for DiscoveryEvent
impl UnwindSafe for DiscoveryEvent
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