forked from compio-rs/compio
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlib.rs
More file actions
58 lines (52 loc) · 1.66 KB
/
lib.rs
File metadata and controls
58 lines (52 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
//! Network utilities.
//!
//! Currently, TCP/UDP/Unix socket are implemented.
#![cfg_attr(docsrs, feature(doc_cfg))]
#![cfg_attr(feature = "once_cell_try", feature(once_cell_try))]
#![allow(unused_features)]
#![warn(missing_docs)]
#![deny(rustdoc::broken_intra_doc_links)]
#![doc(
html_logo_url = "https://github.com/compio-rs/compio-logo/raw/refs/heads/master/generated/colored-bold.svg"
)]
#![doc(
html_favicon_url = "https://github.com/compio-rs/compio-logo/raw/refs/heads/master/generated/colored-bold.svg"
)]
mod incoming;
mod opts;
mod resolve;
mod socket;
pub(crate) mod split;
mod tcp;
mod udp;
mod unix;
/// Reference to a control message.
#[deprecated(
since = "0.12.0",
note = "use `compio_io::ancillary::AncillaryRef` instead"
)]
pub type CMsgRef<'a> = compio_io::ancillary::AncillaryRef<'a>;
/// An iterator for control messages.
#[deprecated(
since = "0.12.0",
note = "use `compio_io::ancillary::AncillaryIter` instead"
)]
pub type CMsgIter<'a> = compio_io::ancillary::AncillaryIter<'a>;
/// Helper to construct control message.
#[deprecated(
since = "0.12.0",
note = "use `compio_io::ancillary::AncillaryBuilder` instead"
)]
pub type CMsgBuilder<'a> = compio_io::ancillary::AncillaryBuilder<'a>;
/// Providing functionalities to wait for readiness.
#[deprecated(since = "0.12.0", note = "Use `compio::runtime::fd::PollFd` instead")]
pub type PollFd<T> = compio_runtime::fd::PollFd<T>;
pub(crate) use incoming::*;
pub use opts::SocketOpts;
pub use resolve::ToSocketAddrsAsync;
pub(crate) use resolve::{each_addr, first_addr_buf, first_addr_buf_zerocopy};
pub(crate) use socket::*;
pub use split::*;
pub use tcp::*;
pub use udp::*;
pub use unix::*;