We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
UCred
1 parent d64c8e3 commit 0254454Copy full SHA for 0254454
tokio/src/net/unix/ucred.rs
@@ -54,6 +54,9 @@ pub(crate) use self::impl_solaris::get_peer_cred;
54
#[cfg(target_os = "aix")]
55
pub(crate) use self::impl_aix::get_peer_cred;
56
57
+#[cfg(target_os = "espidf")]
58
+pub(crate) use self::impl_noproc::get_peer_cred;
59
+
60
#[cfg(any(
61
target_os = "linux",
62
target_os = "redox",
@@ -291,3 +294,17 @@ pub(crate) mod impl_aix {
291
294
}
292
295
293
296
297
298
299
+pub(crate) mod impl_noproc {
300
+ use crate::net::unix::UnixStream;
301
+ use std::io;
302
303
+ pub(crate) fn get_peer_cred(_sock: &UnixStream) -> io::Result<super::UCred> {
304
+ Ok(super::UCred {
305
+ uid: 0,
306
+ gid: 0,
307
+ pid: None,
308
+ })
309
+ }
310
+}
0 commit comments