aboutsummaryrefslogtreecommitdiff
path: root/net/src/lib.rs
blob: 5b9bdd71f020607410f9c2cb2ff345e5c39119dc (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
mod connection;
mod endpoint;
mod error;
mod listener;
mod transports;

pub use {
    connection::{dial, Conn, Connection, ToConn},
    endpoint::{Addr, Endpoint, Port},
    listener::{listen, ConnListener, Listener, ToListener},
    transports::{
        tcp::{dial_tcp, listen_tcp, TcpConn},
        tls,
        udp::{dial_udp, listen_udp, UdpConn},
        unix::{dial_unix, listen_unix, UnixConn},
    },
};

use error::{Error, Result};

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

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