diff --git a/README.md b/README.md index 6f9a41bca..8e93552fd 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,14 @@ Actix web is a simple, pragmatic, extremely fast, web framework for Rust. ## Example +At the moment all examples uses actix-web master. + +```toml +[dependencies] +actix = "0.5" +actix-web = { git="https://github.com/actix/actix-web.git" } +``` + ```rust extern crate actix_web; use actix_web::{server, App, Path}; diff --git a/examples/basics/Cargo.toml b/examples/basics/Cargo.toml index 76bfa52be..294075d4c 100644 --- a/examples/basics/Cargo.toml +++ b/examples/basics/Cargo.toml @@ -5,7 +5,7 @@ authors = ["Nikolay Kim "] workspace = "../.." [dependencies] -futures = "*" +futures = "0.1" env_logger = "0.5" actix = "0.5" actix-web = { path="../.." } diff --git a/examples/state/Cargo.toml b/examples/state/Cargo.toml index bd3ba2439..a0ac2d281 100644 --- a/examples/state/Cargo.toml +++ b/examples/state/Cargo.toml @@ -5,7 +5,7 @@ authors = ["Nikolay Kim "] workspace = "../.." [dependencies] -futures = "*" +futures = "0.1" env_logger = "0.5" actix = "0.5" actix-web = { path = "../../" } diff --git a/guide/src/qs_2.md b/guide/src/qs_2.md index 91fa8ec8b..524c2c1de 100644 --- a/guide/src/qs_2.md +++ b/guide/src/qs_2.md @@ -17,7 +17,7 @@ contains the following: ```toml [dependencies] actix = "0.5" -actix-web = "0.4" +actix-web = { git="https://github.com/actix/actix-web.git" } ``` In order to implement a web server, we first need to create a request handler. diff --git a/src/client/connector.rs b/src/client/connector.rs index 0ad066ae8..5e364ae9f 100644 --- a/src/client/connector.rs +++ b/src/client/connector.rs @@ -78,6 +78,19 @@ pub struct Pause { time: Option, } +impl Pause { + /// Create message with pause duration parameter + pub fn new(time: Duration) -> Pause { + Pause{time: Some(time)} + } +} + +impl Default for Pause { + fn default() -> Pause { + Pause{time: None} + } +} + impl Message for Pause { type Result = (); }