tokio-rs / tokio

A runtime for writing reliable asynchronous applications with Rust. Provides I/O, networking, scheduling, timers, ...
https://tokio.rs
MIT License
25.44k stars 2.3k forks source link

unix/socketaddr: add as_abstract_name #6644

Closed BusyJay closed 3 weeks ago

BusyJay commented 3 weeks ago

Motivation

Both std and mio provide API to fetch underlying path from an abstract uds. This is missing in tokio's wrapper type.

Solution

Add the missing API. std names it as as_abstract_name, mio names it as as_abstract_namespace, this pr chooses the former.

Darksonn commented 3 weeks ago

We are not adding this until we switch to mio v1. Please see #6202.