seehandshake 1.0.2

Visualize TLS handshakes in your terminal, in real time.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// SPDX-License-Identifier: MIT

//! Events consumed by the UI thread.

use crate::model::ConnectionState;

/// A discrete UI update.
#[derive(Debug)]
pub enum UiEvent {
    /// The state of a connection has been updated.
    ///
    /// Boxed to keep the enum small.
    HandshakeUpdated(Box<ConnectionState>),
    /// The tracker evicted one or more stale connections.
    StaleEvicted(usize),
}