mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-10-01 12:20:39 +00:00
net: export UnixDatagram and UnixDatagramFramed (#772)
This commit is contained in:
parent
b117fc1d65
commit
527dc0a66f
13
src/net.rs
13
src/net.rs
@ -8,7 +8,10 @@
|
|||||||
//! * [`TcpListener`] and [`TcpStream`] provide functionality for communication over TCP
|
//! * [`TcpListener`] and [`TcpStream`] provide functionality for communication over TCP
|
||||||
//! * [`UdpSocket`] and [`UdpFramed`] provide functionality for communication over UDP
|
//! * [`UdpSocket`] and [`UdpFramed`] provide functionality for communication over UDP
|
||||||
//! * [`UnixListener`] and [`UnixStream`] provide functionality for communication over a
|
//! * [`UnixListener`] and [`UnixStream`] provide functionality for communication over a
|
||||||
//! Unix Domain Socket **(available on Unix only)**
|
//! Unix Domain Stream Socket **(available on Unix only)**
|
||||||
|
//! * [`UnixDatagram`] and [`UnixDatagramFramed`] provide functionality for communication
|
||||||
|
//! over Unix Domain Datagram Socket **(available on Unix only)**
|
||||||
|
|
||||||
//!
|
//!
|
||||||
//! [`TcpListener`]: struct.TcpListener.html
|
//! [`TcpListener`]: struct.TcpListener.html
|
||||||
//! [`TcpStream`]: struct.TcpStream.html
|
//! [`TcpStream`]: struct.TcpStream.html
|
||||||
@ -16,6 +19,8 @@
|
|||||||
//! [`UdpFramed`]: struct.UdpFramed.html
|
//! [`UdpFramed`]: struct.UdpFramed.html
|
||||||
//! [`UnixListener`]: struct.UnixListener.html
|
//! [`UnixListener`]: struct.UnixListener.html
|
||||||
//! [`UnixStream`]: struct.UnixStream.html
|
//! [`UnixStream`]: struct.UnixStream.html
|
||||||
|
//! [`UnixDatagram`]: struct.UnixDatagram.html
|
||||||
|
//! [`UnixDatagramFramed`]: struct.UnixDatagramFramed.html
|
||||||
|
|
||||||
pub mod tcp {
|
pub mod tcp {
|
||||||
//! TCP bindings for `tokio`.
|
//! TCP bindings for `tokio`.
|
||||||
@ -77,9 +82,9 @@ pub mod unix {
|
|||||||
//! Unix domain socket bindings for `tokio` (only available on unix systems).
|
//! Unix domain socket bindings for `tokio` (only available on unix systems).
|
||||||
|
|
||||||
pub use tokio_uds::{
|
pub use tokio_uds::{
|
||||||
ConnectFuture, Incoming, RecvDgram, SendDgram, UCred, UnixDatagram, UnixListener,
|
ConnectFuture, Incoming, RecvDgram, SendDgram, UCred, UnixDatagram, UnixDatagramFramed,
|
||||||
UnixStream,
|
UnixListener, UnixStream,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
pub use self::unix::{UnixListener, UnixStream};
|
pub use self::unix::{UnixDatagram, UnixDatagramFramed, UnixListener, UnixStream};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user