Lines Matching refs:traits
1 //! Experimental new types and traits to replace the `Raw` family of types and
2 //! traits.
37 mod traits;
46 pub use traits::AsFd;
49 pub use traits::{AsHandle, AsSocket};
52 pub use traits::{FromFd, IntoFd};
55 pub use traits::{FromHandle, FromSocket, IntoHandle, IntoSocket};
80 // io-lifetimes defined `FromFd`/`IntoFd` traits instead of just using
84 // std just uses `From`/`Into`, because it defines those traits itself so it
87 // stabilized, there will be no impls for third-party traits.
89 // So we define `FromFd`/`IntoFd` traits, and implement them in terms of
167 // Ideally, we'd want crates to implement our traits themselves. But for now,