samod_core/network/connection_owner.rs
1use super::{DialerId, ListenerId};
2
3/// Identifies which dialer or listener owns a connection.
4#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
5pub enum ConnectionOwner {
6 /// The connection belongs to a dialer (outgoing).
7 Dialer(DialerId),
8 /// The connection belongs to a listener (incoming).
9 Listener(ListenerId),
10}