aboutsummaryrefslogtreecommitdiff
path: root/net/src/lib.rs
blob: cd5fc8b2fcac113b732fef5bde70ed2963bf3b98 (plain)
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
pub mod codec;
mod connection;
mod endpoint;
mod error;
mod listener;
#[cfg(feature = "stream")]
mod stream;
mod transports;

pub use {
    connection::{Conn, Connection, ToConn},
    endpoint::{Addr, Endpoint, Port, ToEndpoint},
    listener::{ConnListener, Listener, ToListener},
};

#[cfg(feature = "tcp")]
pub use transports::tcp;

#[cfg(feature = "tls")]
pub use transports::tls;

#[cfg(feature = "ws")]
pub use transports::ws;

#[cfg(feature = "udp")]
pub use transports::udp;

#[cfg(all(feature = "unix", target_family = "unix"))]
pub use transports::unix;

/// Represents karyon's Net Error
pub use error::Error;

/// Represents karyon's Net Result
pub use error::Result;