base-scheduler 0.3.0

Explicit, runtime-independent scheduler capabilities for protocol libraries
Documentation
1
2
3
4
5
6
7
8
9
10
11
// Released under the MIT License.
// Copyright, 2026, by Samuel Williams.

use super::SocketOperation;
use crate::SocketAddress;
use std::io;

/// Inspect the connected peer address of a socket.
pub trait SocketPeerAddress: SocketOperation {
    fn socket_peer_address(&self, socket: &Self::Socket) -> io::Result<SocketAddress>;
}