We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
SocketAddr::as_abstract_namespace
1 parent a8e8fa6 commit 2400769Copy full SHA for 2400769
tokio/src/net/unix/socketaddr.rs
@@ -22,6 +22,15 @@ impl SocketAddr {
22
pub fn as_pathname(&self) -> Option<&Path> {
23
self.0.as_pathname()
24
}
25
+
26
+ /// Returns the contents of this address if it is an abstract namespace.
27
+ ///
28
+ /// See also the standard library documentation on [`SocketAddr`].
29
30
+ /// [`SocketAddr`]: std::os::unix::net::SocketAddr
31
+ pub fn as_abstract_namespace(&self) -> Option<&[u8]> {
32
+ self.0.as_abstract_namespace()
33
+ }
34
35
36
impl fmt::Debug for SocketAddr {
0 commit comments