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
17
// SPDX-License-Identifier: MIT

//! No-op origin resolver used on operating systems where socket-to-process
//! lookup is not implemented.

use std::net::SocketAddr;

use crate::origin::{Origin, OriginResolver};

/// Resolver that always returns [`Origin::Unsupported`].
pub struct NullOriginResolver;

impl OriginResolver for NullOriginResolver {
    fn resolve(&mut self, _a: SocketAddr, _b: SocketAddr) -> Origin {
        Origin::Unsupported
    }
}