pub struct NetworkEvent {
pub sequence: u64,
pub generation: u64,
pub source_revision: u64,
pub snapshot: NetworkSnapshot,
pub kind: NetworkEventKind,
}Expand description
One committed event in a named monitor’s ordered observation stream.
Fields§
§sequence: u64Monotonic event cursor for this named monitor. Initial carries its current cursor.
generation: u64Local activation generation. Stop/restart never reuses an earlier generation.
source_revision: u64Revision of the engine’s shared observation associated with this event.
snapshot: NetworkSnapshotThe same local snapshot exposed by NetStatusClient::snapshot at this commit.
kind: NetworkEventKindInitial, observation, reachability transition, or lifecycle notification.
Trait Implementations§
Source§impl Clone for NetworkEvent
impl Clone for NetworkEvent
Auto Trait Implementations§
impl !RefUnwindSafe for NetworkEvent
impl !UnwindSafe for NetworkEvent
impl Freeze for NetworkEvent
impl Send for NetworkEvent
impl Sync for NetworkEvent
impl Unpin for NetworkEvent
impl UnsafeUnpin for NetworkEvent
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