Skip to main content

base_scheduler/
socket_local_address.rs

1// Released under the MIT License.
2// Copyright, 2026, by Samuel Williams.
3
4use super::SocketOperation;
5use crate::SocketAddress;
6use std::io;
7
8/// Inspect the local IP address of a socket.
9pub trait SocketLocalAddress: SocketOperation {
10    fn socket_local_address(&self, socket: &Self::Socket) -> io::Result<SocketAddress>;
11}