2020-09-13 11:12:07 +02:00
|
|
|
//! General purpose TCP server.
|
|
|
|
|
2020-12-13 00:24:00 +01:00
|
|
|
#![deny(rust_2018_idioms, nonstandard_style)]
|
|
|
|
#![doc(html_logo_url = "https://actix.rs/img/logo.png")]
|
|
|
|
#![doc(html_favicon_url = "https://actix.rs/favicon.ico")]
|
2018-09-11 17:43:23 +02:00
|
|
|
|
|
|
|
mod accept;
|
2021-11-04 21:30:43 +01:00
|
|
|
mod availability;
|
2018-12-10 05:30:04 +01:00
|
|
|
mod builder;
|
2021-11-04 21:30:43 +01:00
|
|
|
mod handle;
|
|
|
|
mod join_all;
|
2018-12-10 06:51:35 +01:00
|
|
|
mod server;
|
2019-11-14 13:38:24 +01:00
|
|
|
mod service;
|
2019-11-26 12:03:52 +01:00
|
|
|
mod signals;
|
2019-07-18 13:05:40 +02:00
|
|
|
mod socket;
|
2020-12-29 22:20:24 +01:00
|
|
|
mod test_server;
|
2020-12-29 00:44:53 +01:00
|
|
|
mod waker_queue;
|
2018-09-11 17:43:23 +02:00
|
|
|
mod worker;
|
|
|
|
|
2018-12-10 05:30:04 +01:00
|
|
|
pub use self::builder::ServerBuilder;
|
2021-11-04 21:30:43 +01:00
|
|
|
pub use self::handle::ServerHandle;
|
|
|
|
pub use self::server::Server;
|
2019-11-14 13:38:24 +01:00
|
|
|
pub use self::service::ServiceFactory;
|
2020-12-29 22:20:24 +01:00
|
|
|
pub use self::test_server::TestServer;
|
2019-03-04 23:31:46 +01:00
|
|
|
|
2019-07-18 13:05:40 +02:00
|
|
|
#[doc(hidden)]
|
|
|
|
pub use self::socket::FromStream;
|
|
|
|
|
2018-12-10 07:19:26 +01:00
|
|
|
/// Start server building process
|
2021-11-04 21:30:43 +01:00
|
|
|
#[doc(hidden)]
|
|
|
|
#[deprecated(since = "2.0.0", note = "Use `Server::build()`.")]
|
2019-03-02 23:42:31 +01:00
|
|
|
pub fn new() -> ServerBuilder {
|
2018-12-10 07:19:26 +01:00
|
|
|
ServerBuilder::default()
|
|
|
|
}
|