aboutsummaryrefslogtreecommitdiff
path: root/net/src/lib.rs
blob: c1d72b21d631e4b695e148975d420f93fb6329f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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, tls, udp, unix, ws},
};

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;