zero4rs 2.0.0

zero4rs is a powerful, pragmatic, and extremely fast web framework for Rust
Documentation
pub mod command;
pub mod connection_cmd;
pub mod connection_impl;
pub mod connection_new;
pub mod connection_proc;
pub mod input;
pub mod output;
pub mod restful;
pub mod server;
pub mod server_handle;
pub mod server_impl;
pub mod service_chat;
pub mod service_location;

use std::time::Duration;

/// Connection ID.
pub type ConnId = usize;
pub type UserInfo = (String, String, String); // id(user_id), nickname, user_role(normal_user, guest, chat_channel, chat_group)

/// Message sent to a client.
pub type Msg = String;

pub const WEBCHAT_BROADCAST_CHANNEL: &str = "_webchat_broadcast_channel";

/// How often heartbeat pings are sent
pub const HEARTBEAT_INTERVAL: Duration = Duration::from_secs(5);
/// How long before lack of client response causes a timeout
pub const CLIENT_TIMEOUT: Duration = Duration::from_secs(30);
pub const CLIENT_TIMEOUT_WARNNING: Duration = Duration::from_secs(10);
// pub const ECHO_SERVER_TIME_STR: &str = "0/1 * * * * * *";