1//! Unix specific network types.
2// This module does not currently provide any public API, but it was
3// unintentionally defined as a public module. Hide it from the documentation
4// instead of changing it to a private module to avoid breakage.
5#[doc(hidden)]
6pub mod datagram;
78pub(crate) mod listener;
910pub(crate) mod socket;
1112mod split;
13pub use split::{ReadHalf, WriteHalf};
1415mod split_owned;
16pub use split_owned::{OwnedReadHalf, OwnedWriteHalf, ReuniteError};
1718mod socketaddr;
19pub use socketaddr::SocketAddr;
2021pub(crate) mod stream;
22pub(crate) use stream::UnixStream;
2324mod ucred;
25pub use ucred::UCred;
2627pub mod pipe;
2829/// A type representing user ID.
30#[allow(non_camel_case_types)]
31pub type uid_t = u32;
3233/// A type representing group ID.
34#[allow(non_camel_case_types)]
35pub type gid_t = u32;
3637/// A type representing process and process group IDs.
38#[allow(non_camel_case_types)]
39pub type pid_t = i32;