devela/sys/net/
reexports.rs
1#[allow(unused_imports)]
7use crate::{reexport, TAG_ERROR, TAG_ITERATOR};
8
9reexport! { rust: core::net,
12 tag: TAG_ERROR!(),
13 doc: "An error which can be returned when parsing an IP address or a socket address.",
14 AddrParseError
15}
16reexport! { rust: core::net,
17 doc: "An IPv4 address.",
18 Ipv4Addr
19}
20reexport! { rust: core::net,
21 doc: "An IPv6 address.",
22 Ipv6Addr
23}
24reexport! { rust: core::net,
25 doc: "An IPv4 socket address.",
26 SocketAddrV4
27}
28reexport! { rust: core::net,
29 doc: "An IPv6 socket address.",
30 SocketAddrV6
31}
32
33reexport! { rust: core::net,
36 doc: "An IP address, either IPv4 or IPv6.",
37 IpAddr
38}
39reexport! { rust: core::net,
40 doc: "An internet socket address, either IPv4 or IPv6.",
41 SocketAddr
42}
43
44reexport! { rust: std::net,
47 tag: TAG_ITERATOR!(),
48 doc: "An iterator that infinitely accepts connections on a [`TcpListener`].",
49 @Incoming as TcpIncoming
50}
51reexport! { rust: std::net,
52 doc: "A TCP socket server, listening for connections.",
53 TcpListener
54}
55reexport! { rust: std::net,
56 doc: "A TCP stream between a local and a remote socket.",
57 TcpStream
58}
59reexport! { rust: std::net,
60 doc: "A UDP socket.",
61 UdpSocket
62}
63
64reexport! { rust: std::net,
67 doc: "Possible values which can be passed to the [`TcpStream::shutdown`] method.",
68 @Shutdown as TcpShutdown
69}
70
71reexport! { rust: std::net,
74 doc: "Objects which can be converted or resolved to one or more [`SocketAddr`] values.",
75 ToSocketAddrs
76}