[INFO] cloning repository https://github.com/rmqx-io/ntex-mqtt [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/rmqx-io/ntex-mqtt" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frmqx-io%2Fntex-mqtt", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frmqx-io%2Fntex-mqtt'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5cb293d9a9b2eb64a7936d86401af47b19e3169a [INFO] checking rmqx-io/ntex-mqtt against master#db1fb85cff63ad5fffe435e17128f99f9e1d970c for pr-89056 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frmqx-io%2Fntex-mqtt" "/workspace/builds/worker-10/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-10/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/rmqx-io/ntex-mqtt on toolchain db1fb85cff63ad5fffe435e17128f99f9e1d970c [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+db1fb85cff63ad5fffe435e17128f99f9e1d970c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/rmqx-io/ntex-mqtt [INFO] finished tweaking git repo https://github.com/rmqx-io/ntex-mqtt [INFO] tweaked toml for git repo https://github.com/rmqx-io/ntex-mqtt written to /workspace/builds/worker-10/source/Cargo.toml [INFO] crate git repo https://github.com/rmqx-io/ntex-mqtt already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+db1fb85cff63ad5fffe435e17128f99f9e1d970c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+db1fb85cff63ad5fffe435e17128f99f9e1d970c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 611eea3fa3e86466b2e2c6011efb0f3b9556951466f2f121613874b5eb54cfa0 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "611eea3fa3e86466b2e2c6011efb0f3b9556951466f2f121613874b5eb54cfa0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "611eea3fa3e86466b2e2c6011efb0f3b9556951466f2f121613874b5eb54cfa0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "611eea3fa3e86466b2e2c6011efb0f3b9556951466f2f121613874b5eb54cfa0", kill_on_drop: false }` [INFO] [stdout] 611eea3fa3e86466b2e2c6011efb0f3b9556951466f2f121613874b5eb54cfa0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+db1fb85cff63ad5fffe435e17128f99f9e1d970c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 95511783d5314818f1167305da8c31810f70ce8081ebdac241a00b1909873a7a [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "95511783d5314818f1167305da8c31810f70ce8081ebdac241a00b1909873a7a", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking once_cell v1.8.0 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling proc-macro-nested v0.1.7 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling futures-channel v0.3.17 [INFO] [stderr] Checking spin v0.5.2 [INFO] [stderr] Checking untrusted v0.7.1 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Checking regex-syntax v0.6.25 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Compiling tokio-openssl v0.6.2 [INFO] [stderr] Compiling encoding_rs v0.8.28 [INFO] [stderr] Checking base64 v0.13.0 [INFO] [stderr] Checking opaque-debug v0.3.0 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Checking nanorand v0.5.2 [INFO] [stderr] Checking httpdate v1.0.1 [INFO] [stderr] Checking mime v0.3.16 [INFO] [stderr] Checking linked-hash-map v0.5.4 [INFO] [stderr] Checking termcolor v1.1.2 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling ahash v0.7.4 [INFO] [stderr] Checking http v0.2.4 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking tracing-core v0.1.20 [INFO] [stderr] Checking form_urlencoded v1.0.1 [INFO] [stderr] Compiling proc-macro2 v1.0.29 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking socket2 v0.4.2 [INFO] [stderr] Checking ntex-util v0.1.1 [INFO] [stderr] Checking ring v0.16.20 [INFO] [stderr] Compiling tokio v1.11.0 [INFO] [stderr] Compiling futures-macro v0.3.17 [INFO] [stderr] Compiling futures-util v0.3.17 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Checking mio v0.7.13 [INFO] [stderr] Compiling openssl-sys v0.9.66 [INFO] [stderr] Checking ntex-service v0.1.9 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking tracing v0.1.27 [INFO] [stderr] Compiling syn v1.0.76 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking sha-1 v0.9.8 [INFO] [stderr] Compiling openssl v0.10.36 [INFO] [stderr] Checking webpki v0.21.4 [INFO] [stderr] Checking sct v0.6.1 [INFO] [stderr] Checking rustls v0.19.1 [INFO] [stderr] Checking webpki-roots v0.21.1 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking env_logger v0.8.4 [INFO] [stderr] Checking tokio-util v0.6.8 [INFO] [stderr] Checking tokio-rustls v0.22.0 [INFO] [stderr] Checking ntex-rt v0.2.2 [INFO] [stderr] Checking ntex-codec v0.4.1 [INFO] [stderr] Compiling derive_more v0.99.16 [INFO] [stderr] Compiling ntex-macros v0.1.3 [INFO] [stderr] Checking futures-executor v0.3.17 [INFO] [stderr] Checking h2 v0.3.4 [INFO] [stderr] Checking futures v0.3.17 [INFO] [stderr] Checking bytestring v1.0.0 [INFO] [stderr] Checking serde_json v1.0.68 [INFO] [stderr] Checking serde_urlencoded v0.7.0 [INFO] [stderr] Checking ntex-router v0.4.4 [INFO] [stderr] Checking ntex v0.3.18 [INFO] [stderr] Checking ntex-mqtt v0.6.9 (/opt/rustwide/workdir) [INFO] [stdout] error[E0271]: type mismatch resolving `, MyServerError>>, ntex_mqtt::Session, FnServiceFactory<[closure@examples/session.rs:102:59: 104:26], impl futures::Future, ntex_mqtt::v3::Publish, (), MyServerError, ()>, MyServerError> as ServiceFactory>::Request == ntex_mqtt::v3::PublishMessage` [INFO] [stdout] --> examples/session.rs:100:55 [INFO] [stdout] | [INFO] [stdout] 100 | .v3(v3::MqttServer::new(handshake_v3).publish(fn_factory_with_config( [INFO] [stdout] | ^^^^^^^ expected struct `ntex_mqtt::v3::Publish`, found enum `ntex_mqtt::v3::PublishMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `, MyServerError>>, ntex_mqtt::Session, FnServiceFactory<[closure@examples/session.rs:102:59: 104:26], impl futures::Future, ntex_mqtt::v3::Publish, (), MyServerError, ()>, MyServerError> as ServiceFactory>::Request == ntex_mqtt::v3::PublishMessage` [INFO] [stdout] --> examples/session.rs:100:18 [INFO] [stdout] | [INFO] [stdout] 100 | .v3(v3::MqttServer::new(handshake_v3).publish(fn_factory_with_config( [INFO] [stdout] | ^^ expected struct `ntex_mqtt::v3::Publish`, found enum `ntex_mqtt::v3::PublishMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `>::Error == MyServerError` [INFO] [stdout] --> examples/session.rs:107:55 [INFO] [stdout] | [INFO] [stdout] 107 | .v5(v5::MqttServer::new(handshake_v5).publish(fn_factory_with_config( [INFO] [stdout] | ^^^^^^^ expected enum `Infallible`, found struct `MyServerError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `, MyServerError>>, ntex_mqtt::Session, FnServiceFactory<[closure@examples/session.rs:109:59: 111:26], impl futures::Future, ntex_mqtt::v5::Publish, ntex_mqtt::v5::PublishAck, MyServerError, ()>, MyServerError> as ServiceFactory>::Request == ntex_mqtt::v5::PublishMessage` [INFO] [stdout] --> examples/session.rs:107:55 [INFO] [stdout] | [INFO] [stdout] 107 | .v5(v5::MqttServer::new(handshake_v5).publish(fn_factory_with_config( [INFO] [stdout] | ^^^^^^^ expected struct `ntex_mqtt::v5::Publish`, found enum `ntex_mqtt::v5::PublishMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `, MyServerError>>, ntex_mqtt::Session, FnServiceFactory<[closure@examples/session.rs:109:59: 111:26], impl futures::Future, ntex_mqtt::v5::Publish, ntex_mqtt::v5::PublishAck, MyServerError, ()>, MyServerError> as ServiceFactory>::Response == PublishResult` [INFO] [stdout] --> examples/session.rs:107:55 [INFO] [stdout] | [INFO] [stdout] 107 | .v5(v5::MqttServer::new(handshake_v5).publish(fn_factory_with_config( [INFO] [stdout] | ^^^^^^^ expected struct `ntex_mqtt::v5::PublishAck`, found enum `PublishResult` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `, ()>>, ntex_mqtt::Session, FnServiceFactory<[closure@tests/test_server.rs:256:37: 262:18], impl futures::Future, ntex_mqtt::v3::Publish, (), (), ()>, ()> as ServiceFactory>::Request == ntex_mqtt::v3::PublishMessage` [INFO] [stdout] --> tests/test_server.rs:255:14 [INFO] [stdout] | [INFO] [stdout] 255 | .publish(ntex::fn_factory_with_config(|session: Session| { [INFO] [stdout] | ^^^^^^^ expected struct `ntex_mqtt::v3::Publish`, found enum `ntex_mqtt::v3::PublishMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `>::Error == TestError` [INFO] [stdout] --> tests/test_server_both.rs:40:18 [INFO] [stdout] | [INFO] [stdout] 40 | .publish(|p: v5::Publish| ok::<_, TestError>(p.ack()))) [INFO] [stdout] | ^^^^^^^ expected enum `Infallible`, found struct `TestError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0631]: type mismatch in closure arguments [INFO] [stdout] --> tests/test_server_both.rs:39:17 [INFO] [stdout] | [INFO] [stdout] 39 | .v5(v5::MqttServer::new(|con: v5::Handshake<_>| ok::<_, TestError>(con.ack(St))) [INFO] [stdout] | ______________--_^ [INFO] [stdout] | | | [INFO] [stdout] | | required by a bound introduced by this call [INFO] [stdout] 40 | | .publish(|p: v5::Publish| ok::<_, TestError>(p.ack()))) [INFO] [stdout] | |__________________________--------------------------------------------^ expected signature of `fn(ntex_mqtt::v5::PublishMessage) -> _` [INFO] [stdout] | | [INFO] [stdout] | found signature of `fn(ntex_mqtt::v5::Publish) -> _` [INFO] [stdout] | [INFO] [stdout] = note: required because of the requirements on the impl of `IntoServiceFactory>>` for `[closure@tests/test_server_both.rs:40:26: 40:70]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `, TestError>>, ntex_mqtt::v5::Handshake<_>, ntex_mqtt::v5::HandshakeAck<_, St>, TestError, ()> as ServiceFactory>::Error == Infallible` [INFO] [stdout] --> tests/test_server_both.rs:39:14 [INFO] [stdout] | [INFO] [stdout] 39 | .v5(v5::MqttServer::new(|con: v5::Handshake<_>| ok::<_, TestError>(con.ack(St))) [INFO] [stdout] | ^^ expected struct `TestError`, found enum `Infallible` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0271, E0631. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0271`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ntex-mqtt` due to 4 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0271]: type mismatch resolving `>::Error == TestError` [INFO] [stdout] --> tests/test_server_v5.rs:56:36 [INFO] [stdout] | [INFO] [stdout] 56 | MqttServer::new(handshake).publish(|p: Publish| ok::<_, TestError>(p.ack())).finish() [INFO] [stdout] | ^^^^^^^ expected enum `Infallible`, found struct `TestError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0631]: type mismatch in closure arguments [INFO] [stdout] --> tests/test_server_v5.rs:56:36 [INFO] [stdout] | [INFO] [stdout] 56 | MqttServer::new(handshake).publish(|p: Publish| ok::<_, TestError>(p.ack())).finish() [INFO] [stdout] | ^^^^^^^ ---------------------------------------- found signature of `fn(ntex_mqtt::v5::Publish) -> _` [INFO] [stdout] | | [INFO] [stdout] | expected signature of `fn(ntex_mqtt::v5::PublishMessage) -> _` [INFO] [stdout] | [INFO] [stdout] = note: required because of the requirements on the impl of `IntoServiceFactory>>` for `[closure@tests/test_server_v5.rs:56:44: 56:84]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0631]: type mismatch in function arguments [INFO] [stdout] --> examples/basic.rs:55:63 [INFO] [stdout] | [INFO] [stdout] 30 | async fn publish_v3(publish: v3::Publish) -> Result<(), ServerError> { [INFO] [stdout] | -------------------------------------------------------------------- found signature of `fn(ntex_mqtt::v3::Publish) -> _` [INFO] [stdout] ... [INFO] [stdout] 55 | .v3(v3::MqttServer::new(handshake_v3).publish(publish_v3)) [INFO] [stdout] | ------- ^^^^^^^^^^ expected signature of `fn(ntex_mqtt::v3::PublishMessage) -> _` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: required because of the requirements on the impl of `IntoServiceFactory impl Future {publish_v3}, _, ntex_mqtt::v3::PublishMessage, (), _, ntex_mqtt::Session>>` for `fn(ntex_mqtt::v3::Publish) -> impl Future {publish_v3}` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0631]: type mismatch in function arguments [INFO] [stdout] --> examples/basic.rs:55:21 [INFO] [stdout] | [INFO] [stdout] 30 | async fn publish_v3(publish: v3::Publish) -> Result<(), ServerError> { [INFO] [stdout] | -------------------------------------------------------------------- found signature of `fn(ntex_mqtt::v3::Publish) -> _` [INFO] [stdout] ... [INFO] [stdout] 55 | .v3(v3::MqttServer::new(handshake_v3).publish(publish_v3)) [INFO] [stdout] | -- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected signature of `fn(ntex_mqtt::v3::PublishMessage) -> _` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: required because of the requirements on the impl of `ServiceFactory` for `FnServiceFactory impl Future {publish_v3}, _, ntex_mqtt::v3::PublishMessage, (), _, ntex_mqtt::Session>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0631]: type mismatch in function arguments [INFO] [stdout] --> examples/basic.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 30 | async fn publish_v3(publish: v3::Publish) -> Result<(), ServerError> { [INFO] [stdout] | -------------------------------------------------------------------- found signature of `fn(ntex_mqtt::v3::Publish) -> _` [INFO] [stdout] ... [INFO] [stdout] 54 | / MqttServer::new() [INFO] [stdout] 55 | | .v3(v3::MqttServer::new(handshake_v3).publish(publish_v3)) [INFO] [stdout] 56 | | .v5(v5::MqttServer::new(handshake_v5).publish(publish_v5)) [INFO] [stdout] | |__________________________________________________________________________^ expected signature of `fn(ntex_mqtt::v3::PublishMessage) -> _` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `FnServiceFactory` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/ntex-service-0.1.9/src/fn_service.rs:219:8 [INFO] [stdout] | [INFO] [stdout] 219 | F: Fn(Req) -> Fut, [INFO] [stdout] | ^^^^^^^^^^^^^^ required by this bound in `FnServiceFactory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0631]: type mismatch in function arguments [INFO] [stdout] --> examples/rustls.rs:80:71 [INFO] [stdout] | [INFO] [stdout] 38 | async fn publish_v3(publish: v3::Publish) -> Result<(), ServerError> { [INFO] [stdout] | -------------------------------------------------------------------- found signature of `fn(ntex_mqtt::v3::Publish) -> _` [INFO] [stdout] ... [INFO] [stdout] 80 | .v3(v3::MqttServer::new(handshake_v3).publish(publish_v3)) [INFO] [stdout] | ------- ^^^^^^^^^^ expected signature of `fn(ntex_mqtt::v3::PublishMessage) -> _` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: required because of the requirements on the impl of `IntoServiceFactory impl Future {publish_v3}, _, ntex_mqtt::v3::PublishMessage, (), _, ntex_mqtt::Session>>` for `fn(ntex_mqtt::v3::Publish) -> impl Future {publish_v3}` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `>::Error == ServerError` [INFO] [stdout] --> examples/basic.rs:56:55 [INFO] [stdout] | [INFO] [stdout] 56 | .v5(v5::MqttServer::new(handshake_v5).publish(publish_v5)) [INFO] [stdout] | ^^^^^^^ expected enum `Infallible`, found struct `ServerError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0631]: type mismatch in function arguments [INFO] [stdout] --> examples/rustls.rs:80:29 [INFO] [stdout] | [INFO] [stdout] 38 | async fn publish_v3(publish: v3::Publish) -> Result<(), ServerError> { [INFO] [stdout] | -------------------------------------------------------------------- found signature of `fn(ntex_mqtt::v3::Publish) -> _` [INFO] [stdout] ... [INFO] [stdout] 80 | .v3(v3::MqttServer::new(handshake_v3).publish(publish_v3)) [INFO] [stdout] | -- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected signature of `fn(ntex_mqtt::v3::PublishMessage) -> _` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: required because of the requirements on the impl of `ServiceFactory` for `FnServiceFactory impl Future {publish_v3}, _, ntex_mqtt::v3::PublishMessage, (), _, ntex_mqtt::Session>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0631]: type mismatch in function arguments [INFO] [stdout] --> examples/basic.rs:56:63 [INFO] [stdout] | [INFO] [stdout] 42 | async fn publish_v5(publish: v5::Publish) -> Result { [INFO] [stdout] | -------------------------------------------------------------------------------- found signature of `fn(ntex_mqtt::v5::Publish) -> _` [INFO] [stdout] ... [INFO] [stdout] 56 | .v5(v5::MqttServer::new(handshake_v5).publish(publish_v5)) [INFO] [stdout] | ------- ^^^^^^^^^^ expected signature of `fn(ntex_mqtt::v5::PublishMessage) -> _` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: required because of the requirements on the impl of `IntoServiceFactory impl Future {publish_v5}, _, ntex_mqtt::v5::PublishMessage, PublishResult, _, ntex_mqtt::Session>>` for `fn(ntex_mqtt::v5::Publish) -> impl Future {publish_v5}` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0631]: type mismatch in function arguments [INFO] [stdout] --> examples/rustls.rs:79:21 [INFO] [stdout] | [INFO] [stdout] 38 | async fn publish_v3(publish: v3::Publish) -> Result<(), ServerError> { [INFO] [stdout] | -------------------------------------------------------------------- found signature of `fn(ntex_mqtt::v3::Publish) -> _` [INFO] [stdout] ... [INFO] [stdout] 79 | / MqttServer::new() [INFO] [stdout] 80 | | .v3(v3::MqttServer::new(handshake_v3).publish(publish_v3)) [INFO] [stdout] 81 | | .v5(v5::MqttServer::new(handshake_v5).publish(publish_v5)), [INFO] [stdout] | |__________________________________________________________________________________^ expected signature of `fn(ntex_mqtt::v3::PublishMessage) -> _` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `FnServiceFactory` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/ntex-service-0.1.9/src/fn_service.rs:219:8 [INFO] [stdout] | [INFO] [stdout] 219 | F: Fn(Req) -> Fut, [INFO] [stdout] | ^^^^^^^^^^^^^^ required by this bound in `FnServiceFactory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0631]: type mismatch in function arguments [INFO] [stdout] --> examples/openssl.rs:71:71 [INFO] [stdout] | [INFO] [stdout] 35 | async fn publish_v3(publish: v3::Publish) -> Result<(), ServerError> { [INFO] [stdout] | -------------------------------------------------------------------- found signature of `fn(ntex_mqtt::v3::Publish) -> _` [INFO] [stdout] ... [INFO] [stdout] 71 | .v3(v3::MqttServer::new(handshake_v3).publish(publish_v3)) [INFO] [stdout] | ------- ^^^^^^^^^^ expected signature of `fn(ntex_mqtt::v3::PublishMessage) -> _` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: required because of the requirements on the impl of `IntoServiceFactory impl Future {publish_v3}, _, ntex_mqtt::v3::PublishMessage, (), _, ntex_mqtt::Session>>` for `fn(ntex_mqtt::v3::Publish) -> impl Future {publish_v3}` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0631]: type mismatch in function arguments [INFO] [stdout] --> examples/openssl.rs:71:29 [INFO] [stdout] | [INFO] [stdout] 35 | async fn publish_v3(publish: v3::Publish) -> Result<(), ServerError> { [INFO] [stdout] | -------------------------------------------------------------------- found signature of `fn(ntex_mqtt::v3::Publish) -> _` [INFO] [stdout] ... [INFO] [stdout] 71 | .v3(v3::MqttServer::new(handshake_v3).publish(publish_v3)) [INFO] [stdout] | -- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected signature of `fn(ntex_mqtt::v3::PublishMessage) -> _` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: required because of the requirements on the impl of `ServiceFactory` for `FnServiceFactory impl Future {publish_v3}, _, ntex_mqtt::v3::PublishMessage, (), _, ntex_mqtt::Session>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `>::Error == ServerError` [INFO] [stdout] --> examples/rustls.rs:81:63 [INFO] [stdout] | [INFO] [stdout] 81 | .v5(v5::MqttServer::new(handshake_v5).publish(publish_v5)), [INFO] [stdout] | ^^^^^^^ expected enum `Infallible`, found struct `ServerError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0631]: type mismatch in function arguments [INFO] [stdout] --> examples/rustls.rs:81:71 [INFO] [stdout] | [INFO] [stdout] 50 | async fn publish_v5(publish: v5::Publish) -> Result { [INFO] [stdout] | -------------------------------------------------------------------------------- found signature of `fn(ntex_mqtt::v5::Publish) -> _` [INFO] [stdout] ... [INFO] [stdout] 81 | .v5(v5::MqttServer::new(handshake_v5).publish(publish_v5)), [INFO] [stdout] | ------- ^^^^^^^^^^ expected signature of `fn(ntex_mqtt::v5::PublishMessage) -> _` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: required because of the requirements on the impl of `IntoServiceFactory impl Future {publish_v5}, _, ntex_mqtt::v5::PublishMessage, PublishResult, _, ntex_mqtt::Session>>` for `fn(ntex_mqtt::v5::Publish) -> impl Future {publish_v5}` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0631]: type mismatch in function arguments [INFO] [stdout] --> examples/openssl.rs:70:21 [INFO] [stdout] | [INFO] [stdout] 35 | async fn publish_v3(publish: v3::Publish) -> Result<(), ServerError> { [INFO] [stdout] | -------------------------------------------------------------------- found signature of `fn(ntex_mqtt::v3::Publish) -> _` [INFO] [stdout] ... [INFO] [stdout] 70 | / MqttServer::new() [INFO] [stdout] 71 | | .v3(v3::MqttServer::new(handshake_v3).publish(publish_v3)) [INFO] [stdout] 72 | | .v5(v5::MqttServer::new(handshake_v5).publish(publish_v5)), [INFO] [stdout] | |__________________________________________________________________________________^ expected signature of `fn(ntex_mqtt::v3::PublishMessage) -> _` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `FnServiceFactory` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/ntex-service-0.1.9/src/fn_service.rs:219:8 [INFO] [stdout] | [INFO] [stdout] 219 | F: Fn(Req) -> Fut, [INFO] [stdout] | ^^^^^^^^^^^^^^ required by this bound in `FnServiceFactory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `>) -> impl Future {handshake_v5}, impl Future, ntex_mqtt::v5::Handshake>, ntex_mqtt::v5::HandshakeAck, Session>, ServerError, ()> as ServiceFactory>::Error == Infallible` [INFO] [stdout] --> examples/rustls.rs:81:26 [INFO] [stdout] | [INFO] [stdout] 81 | .v5(v5::MqttServer::new(handshake_v5).publish(publish_v5)), [INFO] [stdout] | ^^ expected struct `ServerError`, found enum `Infallible` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `) -> impl Future {handshake_v5::<_>}, impl Future, ntex_mqtt::v5::Handshake<_>, ntex_mqtt::v5::HandshakeAck<_, Session>, ServerError, ()> as ServiceFactory>::Error == Infallible` [INFO] [stdout] --> examples/basic.rs:56:18 [INFO] [stdout] | [INFO] [stdout] 56 | .v5(v5::MqttServer::new(handshake_v5).publish(publish_v5)) [INFO] [stdout] | ^^ expected struct `ServerError`, found enum `Infallible` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0631]: type mismatch in function arguments [INFO] [stdout] --> examples/basic.rs:56:21 [INFO] [stdout] | [INFO] [stdout] 42 | async fn publish_v5(publish: v5::Publish) -> Result { [INFO] [stdout] | -------------------------------------------------------------------------------- found signature of `fn(ntex_mqtt::v5::Publish) -> _` [INFO] [stdout] ... [INFO] [stdout] 56 | .v5(v5::MqttServer::new(handshake_v5).publish(publish_v5)) [INFO] [stdout] | -- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected signature of `fn(ntex_mqtt::v5::PublishMessage) -> _` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: required because of the requirements on the impl of `ServiceFactory` for `FnServiceFactory impl Future {publish_v5}, _, ntex_mqtt::v5::PublishMessage, PublishResult, _, ntex_mqtt::Session>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `>::Error == ServerError` [INFO] [stdout] --> examples/openssl.rs:72:63 [INFO] [stdout] | [INFO] [stdout] 72 | .v5(v5::MqttServer::new(handshake_v5).publish(publish_v5)), [INFO] [stdout] | ^^^^^^^ expected enum `Infallible`, found struct `ServerError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0631]: type mismatch in function arguments [INFO] [stdout] --> examples/openssl.rs:72:71 [INFO] [stdout] | [INFO] [stdout] 47 | async fn publish_v5(publish: v5::Publish) -> Result { [INFO] [stdout] | -------------------------------------------------------------------------------- found signature of `fn(ntex_mqtt::v5::Publish) -> _` [INFO] [stdout] ... [INFO] [stdout] 72 | .v5(v5::MqttServer::new(handshake_v5).publish(publish_v5)), [INFO] [stdout] | ------- ^^^^^^^^^^ expected signature of `fn(ntex_mqtt::v5::PublishMessage) -> _` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: required because of the requirements on the impl of `IntoServiceFactory impl Future {publish_v5}, _, ntex_mqtt::v5::PublishMessage, PublishResult, _, ntex_mqtt::Session>>` for `fn(ntex_mqtt::v5::Publish) -> impl Future {publish_v5}` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `>) -> impl Future {handshake_v5}, impl Future, ntex_mqtt::v5::Handshake>, ntex_mqtt::v5::HandshakeAck, Session>, ServerError, ()> as ServiceFactory>::Error == Infallible` [INFO] [stdout] --> examples/openssl.rs:72:26 [INFO] [stdout] | [INFO] [stdout] 72 | .v5(v5::MqttServer::new(handshake_v5).publish(publish_v5)), [INFO] [stdout] | ^^ expected struct `ServerError`, found enum `Infallible` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0631]: type mismatch in function arguments [INFO] [stdout] --> examples/openssl.rs:72:29 [INFO] [stdout] | [INFO] [stdout] 47 | async fn publish_v5(publish: v5::Publish) -> Result { [INFO] [stdout] | -------------------------------------------------------------------------------- found signature of `fn(ntex_mqtt::v5::Publish) -> _` [INFO] [stdout] ... [INFO] [stdout] 72 | .v5(v5::MqttServer::new(handshake_v5).publish(publish_v5)), [INFO] [stdout] | -- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected signature of `fn(ntex_mqtt::v5::PublishMessage) -> _` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: required because of the requirements on the impl of `ServiceFactory` for `FnServiceFactory impl Future {publish_v5}, _, ntex_mqtt::v5::PublishMessage, PublishResult, _, ntex_mqtt::Session>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0631]: type mismatch in function arguments [INFO] [stdout] --> examples/rustls.rs:81:29 [INFO] [stdout] | [INFO] [stdout] 50 | async fn publish_v5(publish: v5::Publish) -> Result { [INFO] [stdout] | -------------------------------------------------------------------------------- found signature of `fn(ntex_mqtt::v5::Publish) -> _` [INFO] [stdout] ... [INFO] [stdout] 81 | .v5(v5::MqttServer::new(handshake_v5).publish(publish_v5)), [INFO] [stdout] | -- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected signature of `fn(ntex_mqtt::v5::PublishMessage) -> _` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: required because of the requirements on the impl of `ServiceFactory` for `FnServiceFactory impl Future {publish_v5}, _, ntex_mqtt::v5::PublishMessage, PublishResult, _, ntex_mqtt::Session>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0631]: type mismatch in function arguments [INFO] [stdout] --> examples/rustls.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 38 | async fn publish_v3(publish: v3::Publish) -> Result<(), ServerError> { [INFO] [stdout] | -------------------------------------------------------------------- found signature of `fn(ntex_mqtt::v3::Publish) -> _` [INFO] [stdout] ... [INFO] [stdout] 76 | / pipeline_factory(tls_acceptor.clone()) [INFO] [stdout] 77 | | .map_err(|_err| MqttError::Service(ServerError {})) [INFO] [stdout] 78 | | .and_then( [INFO] [stdout] 79 | | MqttServer::new() [INFO] [stdout] 80 | | .v3(v3::MqttServer::new(handshake_v3).publish(publish_v3)) [INFO] [stdout] 81 | | .v5(v5::MqttServer::new(handshake_v5).publish(publish_v5)), [INFO] [stdout] 82 | | ) [INFO] [stdout] | |_________________^ expected signature of `fn(ntex_mqtt::v3::PublishMessage) -> _` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `FnServiceFactory` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/ntex-service-0.1.9/src/fn_service.rs:219:8 [INFO] [stdout] | [INFO] [stdout] 219 | F: Fn(Req) -> Fut, [INFO] [stdout] | ^^^^^^^^^^^^^^ required by this bound in `FnServiceFactory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0631]: type mismatch in function arguments [INFO] [stdout] --> examples/rustls.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 50 | async fn publish_v5(publish: v5::Publish) -> Result { [INFO] [stdout] | -------------------------------------------------------------------------------- found signature of `fn(ntex_mqtt::v5::Publish) -> _` [INFO] [stdout] ... [INFO] [stdout] 76 | / pipeline_factory(tls_acceptor.clone()) [INFO] [stdout] 77 | | .map_err(|_err| MqttError::Service(ServerError {})) [INFO] [stdout] 78 | | .and_then( [INFO] [stdout] 79 | | MqttServer::new() [INFO] [stdout] 80 | | .v3(v3::MqttServer::new(handshake_v3).publish(publish_v3)) [INFO] [stdout] 81 | | .v5(v5::MqttServer::new(handshake_v5).publish(publish_v5)), [INFO] [stdout] 82 | | ) [INFO] [stdout] | |_________________^ expected signature of `fn(ntex_mqtt::v5::PublishMessage) -> _` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `FnServiceFactory` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/ntex-service-0.1.9/src/fn_service.rs:219:8 [INFO] [stdout] | [INFO] [stdout] 219 | F: Fn(Req) -> Fut, [INFO] [stdout] | ^^^^^^^^^^^^^^ required by this bound in `FnServiceFactory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0631]: type mismatch in function arguments [INFO] [stdout] --> examples/openssl.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 35 | async fn publish_v3(publish: v3::Publish) -> Result<(), ServerError> { [INFO] [stdout] | -------------------------------------------------------------------- found signature of `fn(ntex_mqtt::v3::Publish) -> _` [INFO] [stdout] ... [INFO] [stdout] 67 | / pipeline_factory(Acceptor::new(acceptor.clone())) [INFO] [stdout] 68 | | .map_err(|_err| MqttError::Service(ServerError {})) [INFO] [stdout] 69 | | .and_then( [INFO] [stdout] 70 | | MqttServer::new() [INFO] [stdout] 71 | | .v3(v3::MqttServer::new(handshake_v3).publish(publish_v3)) [INFO] [stdout] 72 | | .v5(v5::MqttServer::new(handshake_v5).publish(publish_v5)), [INFO] [stdout] 73 | | ) [INFO] [stdout] | |_________________^ expected signature of `fn(ntex_mqtt::v3::PublishMessage) -> _` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `FnServiceFactory` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/ntex-service-0.1.9/src/fn_service.rs:219:8 [INFO] [stdout] | [INFO] [stdout] 219 | F: Fn(Req) -> Fut, [INFO] [stdout] | ^^^^^^^^^^^^^^ required by this bound in `FnServiceFactory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0631]: type mismatch in function arguments [INFO] [stdout] --> examples/openssl.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 47 | async fn publish_v5(publish: v5::Publish) -> Result { [INFO] [stdout] | -------------------------------------------------------------------------------- found signature of `fn(ntex_mqtt::v5::Publish) -> _` [INFO] [stdout] ... [INFO] [stdout] 67 | / pipeline_factory(Acceptor::new(acceptor.clone())) [INFO] [stdout] 68 | | .map_err(|_err| MqttError::Service(ServerError {})) [INFO] [stdout] 69 | | .and_then( [INFO] [stdout] 70 | | MqttServer::new() [INFO] [stdout] 71 | | .v3(v3::MqttServer::new(handshake_v3).publish(publish_v3)) [INFO] [stdout] 72 | | .v5(v5::MqttServer::new(handshake_v5).publish(publish_v5)), [INFO] [stdout] 73 | | ) [INFO] [stdout] | |_________________^ expected signature of `fn(ntex_mqtt::v5::PublishMessage) -> _` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `FnServiceFactory` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/ntex-service-0.1.9/src/fn_service.rs:219:8 [INFO] [stdout] | [INFO] [stdout] 219 | F: Fn(Req) -> Fut, [INFO] [stdout] | ^^^^^^^^^^^^^^ required by this bound in `FnServiceFactory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0271, E0631. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0271`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0271, E0631. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0271`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0271, E0631. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0271`. [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `finish` exists for struct `ntex_mqtt::v3::MqttServer<_, St, FnServiceFactory) -> impl futures::Future {handshake::<_>}, impl futures::Future, ntex_mqtt::v3::Handshake<_>, ntex_mqtt::v3::HandshakeAck<_, St>, (), ()>, ntex_mqtt::v3::default::DefaultControlService, FnServiceConfig<[closure@tests/test_server.rs:255:51: 263:14], futures::future::Ready, ()>>, ntex_mqtt::Session, FnServiceFactory<[closure@tests/test_server.rs:256:37: 262:18], impl futures::Future, ntex_mqtt::v3::Publish, (), (), ()>, ()>>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/test_server.rs:264:14 [INFO] [stdout] | [INFO] [stdout] 264 | .finish() [INFO] [stdout] | ^^^^^^ method cannot be called on `ntex_mqtt::v3::MqttServer<_, St, FnServiceFactory) -> impl futures::Future {handshake::<_>}, impl futures::Future, ntex_mqtt::v3::Handshake<_>, ntex_mqtt::v3::HandshakeAck<_, St>, (), ()>, ntex_mqtt::v3::default::DefaultControlService, FnServiceConfig<[closure@tests/test_server.rs:255:51: 263:14], futures::future::Ready, ()>>, ntex_mqtt::Session, FnServiceFactory<[closure@tests/test_server.rs:256:37: 262:18], impl futures::Future, ntex_mqtt::v3::Publish, (), (), ()>, ()>>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/ntex-service-0.1.9/src/fn_service.rs:349:1 [INFO] [stdout] | [INFO] [stdout] 349 | / pub struct FnServiceConfig [INFO] [stdout] 350 | | where [INFO] [stdout] 351 | | F: Fn(Cfg) -> Fut, [INFO] [stdout] 352 | | Fut: Future>, [INFO] [stdout] ... | [INFO] [stdout] 356 | | _t: PhantomData<(Fut, Cfg, Srv, Err)>, [INFO] [stdout] 357 | | } [INFO] [stdout] | |_- doesn't satisfy `<_ as ServiceFactory>::Request = ntex_mqtt::v3::PublishMessage` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `, ()>>, ntex_mqtt::Session, FnServiceFactory<[closure@tests/test_server.rs:256:37: 262:18], impl futures::Future, ntex_mqtt::v3::Publish, (), (), ()>, ()> as ServiceFactory>::Request = ntex_mqtt::v3::PublishMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0271, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0271`. [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `finish` exists for struct `ntex_mqtt::v5::MqttServer<_, St, FnServiceFactory) -> impl futures::Future {handshake::<_>}, impl futures::Future, ntex_mqtt::v5::Handshake<_>, ntex_mqtt::v5::HandshakeAck<_, St>, TestError, ()>, ntex_mqtt::v5::default::DefaultControlService, FnServiceFactory<[closure@tests/test_server_v5.rs:56:44: 56:84], _, ntex_mqtt::v5::PublishMessage, PublishResult, _, ntex_mqtt::Session>>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/test_server_v5.rs:56:86 [INFO] [stdout] | [INFO] [stdout] 56 | MqttServer::new(handshake).publish(|p: Publish| ok::<_, TestError>(p.ack())).finish() [INFO] [stdout] | ---------------------------------------- ^^^^^^ method cannot be called on `ntex_mqtt::v5::MqttServer<_, St, FnServiceFactory) -> impl futures::Future {handshake::<_>}, impl futures::Future, ntex_mqtt::v5::Handshake<_>, ntex_mqtt::v5::HandshakeAck<_, St>, TestError, ()>, ntex_mqtt::v5::default::DefaultControlService, FnServiceFactory<[closure@tests/test_server_v5.rs:56:44: 56:84], _, ntex_mqtt::v5::PublishMessage, PublishResult, _, ntex_mqtt::Session>>` due to unsatisfied trait bounds [INFO] [stdout] | | [INFO] [stdout] | doesn't satisfy `<_ as FnOnce<(ntex_mqtt::v5::PublishMessage,)>>::Output = _` [INFO] [stdout] | doesn't satisfy `_: Fn<(ntex_mqtt::v5::PublishMessage,)>` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/v5/publish.rs:39:1 [INFO] [stdout] | [INFO] [stdout] 39 | pub enum PublishResult { [INFO] [stdout] | ---------------------- doesn't satisfy `>::Error = TestError` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/ntex-service-0.1.9/src/fn_service.rs:217:1 [INFO] [stdout] | [INFO] [stdout] 217 | / pub struct FnServiceFactory [INFO] [stdout] 218 | | where [INFO] [stdout] 219 | | F: Fn(Req) -> Fut, [INFO] [stdout] 220 | | Fut: Future>, [INFO] [stdout] ... | [INFO] [stdout] 224 | | _t: PhantomData<(Req, Cfg)>, [INFO] [stdout] 225 | | } [INFO] [stdout] | | - [INFO] [stdout] | | | [INFO] [stdout] | | doesn't satisfy `<_ as ServiceFactory>::Config = ntex_mqtt::Session` [INFO] [stdout] | | doesn't satisfy `<_ as ServiceFactory>::Request = ntex_mqtt::v5::PublishMessage` [INFO] [stdout] | |_doesn't satisfy `<_ as ServiceFactory>::Response = PublishResult` [INFO] [stdout] | doesn't satisfy `_: ServiceFactory` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `> as ServiceFactory>::Config = ntex_mqtt::Session` [INFO] [stdout] `> as ServiceFactory>::Request = ntex_mqtt::v5::PublishMessage` [INFO] [stdout] `> as ServiceFactory>::Response = PublishResult` [INFO] [stdout] `>::Error = TestError` [INFO] [stdout] `FnServiceFactory<[closure@tests/test_server_v5.rs:56:44: 56:84], _, ntex_mqtt::v5::PublishMessage, PublishResult, _, ntex_mqtt::Session>: ServiceFactory` [INFO] [stdout] `<[closure@tests/test_server_v5.rs:56:44: 56:84] as FnOnce<(ntex_mqtt::v5::PublishMessage,)>>::Output = _` [INFO] [stdout] `[closure@tests/test_server_v5.rs:56:44: 56:84]: Fn<(ntex_mqtt::v5::PublishMessage,)>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `PublishResult: From` is not satisfied [INFO] [stdout] --> examples/session.rs:107:55 [INFO] [stdout] | [INFO] [stdout] 107 | .v5(v5::MqttServer::new(handshake_v5).publish(fn_factory_with_config( [INFO] [stdout] | ^^^^^^^ the trait `From` is not implemented for `PublishResult` [INFO] [stdout] | [INFO] [stdout] = note: required because of the requirements on the impl of `Into` for `MyServerError` [INFO] [stdout] = note: required because of the requirements on the impl of `TryFrom` for `PublishResult` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `>::Error == TestError` [INFO] [stdout] --> tests/test_server_v5.rs:79:14 [INFO] [stdout] | [INFO] [stdout] 79 | .publish(ntex::fn_factory_with_config(|session: Session| { [INFO] [stdout] | ^^^^^^^ expected enum `Infallible`, found struct `TestError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `) -> impl futures::Future {handshake_v5::<_>}, impl futures::Future, ntex_mqtt::v5::Handshake<_>, ntex_mqtt::v5::HandshakeAck<_, MySession>, MyServerError, ()> as ServiceFactory>::Error == Infallible` [INFO] [stdout] --> examples/session.rs:107:18 [INFO] [stdout] | [INFO] [stdout] 107 | .v5(v5::MqttServer::new(handshake_v5).publish(fn_factory_with_config( [INFO] [stdout] | ^^ expected struct `MyServerError`, found enum `Infallible` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `, MyServerError>>, ntex_mqtt::Session, FnServiceFactory<[closure@examples/session.rs:109:59: 111:26], impl futures::Future, ntex_mqtt::v5::Publish, ntex_mqtt::v5::PublishAck, MyServerError, ()>, MyServerError> as ServiceFactory>::Request == ntex_mqtt::v5::PublishMessage` [INFO] [stdout] --> examples/session.rs:107:18 [INFO] [stdout] | [INFO] [stdout] 107 | .v5(v5::MqttServer::new(handshake_v5).publish(fn_factory_with_config( [INFO] [stdout] | ^^ expected struct `ntex_mqtt::v5::Publish`, found enum `ntex_mqtt::v5::PublishMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `, MyServerError>>, ntex_mqtt::Session, FnServiceFactory<[closure@examples/session.rs:109:59: 111:26], impl futures::Future, ntex_mqtt::v5::Publish, ntex_mqtt::v5::PublishAck, MyServerError, ()>, MyServerError> as ServiceFactory>::Response == PublishResult` [INFO] [stdout] --> examples/session.rs:107:18 [INFO] [stdout] | [INFO] [stdout] 107 | .v5(v5::MqttServer::new(handshake_v5).publish(fn_factory_with_config( [INFO] [stdout] | ^^ expected struct `ntex_mqtt::v5::PublishAck`, found enum `PublishResult` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `, TestError>>, ntex_mqtt::Session, FnServiceFactory<[closure@tests/test_server_v5.rs:80:53: 86:18], impl futures::Future, ntex_mqtt::v5::Publish, ntex_mqtt::v5::PublishAck, TestError, ()>, TestError> as ServiceFactory>::Request == ntex_mqtt::v5::PublishMessage` [INFO] [stdout] --> tests/test_server_v5.rs:79:14 [INFO] [stdout] | [INFO] [stdout] 79 | .publish(ntex::fn_factory_with_config(|session: Session| { [INFO] [stdout] | ^^^^^^^ expected struct `ntex_mqtt::v5::Publish`, found enum `ntex_mqtt::v5::PublishMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `, TestError>>, ntex_mqtt::Session, FnServiceFactory<[closure@tests/test_server_v5.rs:80:53: 86:18], impl futures::Future, ntex_mqtt::v5::Publish, ntex_mqtt::v5::PublishAck, TestError, ()>, TestError> as ServiceFactory>::Response == PublishResult` [INFO] [stdout] --> tests/test_server_v5.rs:79:14 [INFO] [stdout] | [INFO] [stdout] 79 | .publish(ntex::fn_factory_with_config(|session: Session| { [INFO] [stdout] | ^^^^^^^ expected struct `ntex_mqtt::v5::PublishAck`, found enum `PublishResult` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `PublishResult: From` is not satisfied [INFO] [stdout] --> examples/session.rs:107:18 [INFO] [stdout] | [INFO] [stdout] 107 | .v5(v5::MqttServer::new(handshake_v5).publish(fn_factory_with_config( [INFO] [stdout] | ^^ the trait `From` is not implemented for `PublishResult` [INFO] [stdout] | [INFO] [stdout] = note: required because of the requirements on the impl of `Into` for `MyServerError` [INFO] [stdout] = note: required because of the requirements on the impl of `TryFrom` for `PublishResult` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `PublishResult: From` is not satisfied [INFO] [stdout] --> tests/test_server_v5.rs:79:14 [INFO] [stdout] | [INFO] [stdout] 79 | .publish(ntex::fn_factory_with_config(|session: Session| { [INFO] [stdout] | ^^^^^^^ the trait `From` is not implemented for `PublishResult` [INFO] [stdout] | [INFO] [stdout] = note: required because of the requirements on the impl of `Into` for `TestError` [INFO] [stdout] = note: required because of the requirements on the impl of `TryFrom` for `PublishResult` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `finish` exists for struct `ntex_mqtt::v5::MqttServer<_, St, FnServiceFactory) -> impl futures::Future {handshake::<_>}, impl futures::Future, ntex_mqtt::v5::Handshake<_>, ntex_mqtt::v5::HandshakeAck<_, St>, TestError, ()>, ntex_mqtt::v5::default::DefaultControlService, FnServiceConfig<[closure@tests/test_server_v5.rs:79:51: 87:14], futures::future::Ready, TestError>>, ntex_mqtt::Session, FnServiceFactory<[closure@tests/test_server_v5.rs:80:53: 86:18], impl futures::Future, ntex_mqtt::v5::Publish, ntex_mqtt::v5::PublishAck, TestError, ()>, TestError>>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/test_server_v5.rs:88:14 [INFO] [stdout] | [INFO] [stdout] 88 | .finish() [INFO] [stdout] | ^^^^^^ method cannot be called on `ntex_mqtt::v5::MqttServer<_, St, FnServiceFactory) -> impl futures::Future {handshake::<_>}, impl futures::Future, ntex_mqtt::v5::Handshake<_>, ntex_mqtt::v5::HandshakeAck<_, St>, TestError, ()>, ntex_mqtt::v5::default::DefaultControlService, FnServiceConfig<[closure@tests/test_server_v5.rs:79:51: 87:14], futures::future::Ready, TestError>>, ntex_mqtt::Session, FnServiceFactory<[closure@tests/test_server_v5.rs:80:53: 86:18], impl futures::Future, ntex_mqtt::v5::Publish, ntex_mqtt::v5::PublishAck, TestError, ()>, TestError>>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/v5/publish.rs:39:1 [INFO] [stdout] | [INFO] [stdout] 39 | pub enum PublishResult { [INFO] [stdout] | ---------------------- [INFO] [stdout] | | [INFO] [stdout] | doesn't satisfy `<_ as TryFrom>::Error = TestError` [INFO] [stdout] | doesn't satisfy `PublishResult: TryFrom` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/ntex-service-0.1.9/src/fn_service.rs:349:1 [INFO] [stdout] | [INFO] [stdout] 349 | / pub struct FnServiceConfig [INFO] [stdout] 350 | | where [INFO] [stdout] 351 | | F: Fn(Cfg) -> Fut, [INFO] [stdout] 352 | | Fut: Future>, [INFO] [stdout] ... | [INFO] [stdout] 356 | | _t: PhantomData<(Fut, Cfg, Srv, Err)>, [INFO] [stdout] 357 | | } [INFO] [stdout] | | - [INFO] [stdout] | | | [INFO] [stdout] | |_doesn't satisfy `<_ as ServiceFactory>::Request = ntex_mqtt::v5::PublishMessage` [INFO] [stdout] | doesn't satisfy `<_ as ServiceFactory>::Response = PublishResult` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `, TestError>>, ntex_mqtt::Session, FnServiceFactory<[closure@tests/test_server_v5.rs:80:53: 86:18], impl futures::Future, ntex_mqtt::v5::Publish, ntex_mqtt::v5::PublishAck, TestError, ()>, TestError> as ServiceFactory>::Request = ntex_mqtt::v5::PublishMessage` [INFO] [stdout] `, TestError>>, ntex_mqtt::Session, FnServiceFactory<[closure@tests/test_server_v5.rs:80:53: 86:18], impl futures::Future, ntex_mqtt::v5::Publish, ntex_mqtt::v5::PublishAck, TestError, ()>, TestError> as ServiceFactory>::Response = PublishResult` [INFO] [stdout] `>::Error = TestError` [INFO] [stdout] `PublishResult: TryFrom` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `>::Error == TestError` [INFO] [stdout] --> tests/test_server_v5.rs:110:14 [INFO] [stdout] | [INFO] [stdout] 110 | .publish(ntex::fn_factory_with_config(|session: Session| { [INFO] [stdout] | ^^^^^^^ expected enum `Infallible`, found struct `TestError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `, TestError>>, ntex_mqtt::Session, FnServiceFactory<[closure@tests/test_server_v5.rs:111:53: 121:18], impl futures::Future, ntex_mqtt::v5::Publish, ntex_mqtt::v5::PublishAck, TestError, ()>, TestError> as ServiceFactory>::Request == ntex_mqtt::v5::PublishMessage` [INFO] [stdout] --> tests/test_server_v5.rs:110:14 [INFO] [stdout] | [INFO] [stdout] 110 | .publish(ntex::fn_factory_with_config(|session: Session| { [INFO] [stdout] | ^^^^^^^ expected struct `ntex_mqtt::v5::Publish`, found enum `ntex_mqtt::v5::PublishMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `, TestError>>, ntex_mqtt::Session, FnServiceFactory<[closure@tests/test_server_v5.rs:111:53: 121:18], impl futures::Future, ntex_mqtt::v5::Publish, ntex_mqtt::v5::PublishAck, TestError, ()>, TestError> as ServiceFactory>::Response == PublishResult` [INFO] [stdout] --> tests/test_server_v5.rs:110:14 [INFO] [stdout] | [INFO] [stdout] 110 | .publish(ntex::fn_factory_with_config(|session: Session| { [INFO] [stdout] | ^^^^^^^ expected struct `ntex_mqtt::v5::PublishAck`, found enum `PublishResult` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0271, E0277. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0271`. [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `PublishResult: From` is not satisfied [INFO] [stdout] --> tests/test_server_v5.rs:110:14 [INFO] [stdout] | [INFO] [stdout] 110 | .publish(ntex::fn_factory_with_config(|session: Session| { [INFO] [stdout] | ^^^^^^^ the trait `From` is not implemented for `PublishResult` [INFO] [stdout] | [INFO] [stdout] = note: required because of the requirements on the impl of `Into` for `TestError` [INFO] [stdout] = note: required because of the requirements on the impl of `TryFrom` for `PublishResult` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `finish` exists for struct `ntex_mqtt::v5::MqttServer<_, St, FnServiceFactory) -> impl futures::Future {handshake::<_>}, impl futures::Future, ntex_mqtt::v5::Handshake<_>, ntex_mqtt::v5::HandshakeAck<_, St>, TestError, ()>, ntex_mqtt::v5::default::DefaultControlService, FnServiceConfig<[closure@tests/test_server_v5.rs:110:51: 122:14], futures::future::Ready, TestError>>, ntex_mqtt::Session, FnServiceFactory<[closure@tests/test_server_v5.rs:111:53: 121:18], impl futures::Future, ntex_mqtt::v5::Publish, ntex_mqtt::v5::PublishAck, TestError, ()>, TestError>>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/test_server_v5.rs:123:14 [INFO] [stdout] | [INFO] [stdout] 123 | .finish() [INFO] [stdout] | ^^^^^^ method cannot be called on `ntex_mqtt::v5::MqttServer<_, St, FnServiceFactory) -> impl futures::Future {handshake::<_>}, impl futures::Future, ntex_mqtt::v5::Handshake<_>, ntex_mqtt::v5::HandshakeAck<_, St>, TestError, ()>, ntex_mqtt::v5::default::DefaultControlService, FnServiceConfig<[closure@tests/test_server_v5.rs:110:51: 122:14], futures::future::Ready, TestError>>, ntex_mqtt::Session, FnServiceFactory<[closure@tests/test_server_v5.rs:111:53: 121:18], impl futures::Future, ntex_mqtt::v5::Publish, ntex_mqtt::v5::PublishAck, TestError, ()>, TestError>>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/v5/publish.rs:39:1 [INFO] [stdout] | [INFO] [stdout] 39 | pub enum PublishResult { [INFO] [stdout] | ---------------------- [INFO] [stdout] | | [INFO] [stdout] | doesn't satisfy `<_ as TryFrom>::Error = TestError` [INFO] [stdout] | doesn't satisfy `PublishResult: TryFrom` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/ntex-service-0.1.9/src/fn_service.rs:349:1 [INFO] [stdout] | [INFO] [stdout] 349 | / pub struct FnServiceConfig [INFO] [stdout] 350 | | where [INFO] [stdout] 351 | | F: Fn(Cfg) -> Fut, [INFO] [stdout] 352 | | Fut: Future>, [INFO] [stdout] ... | [INFO] [stdout] 356 | | _t: PhantomData<(Fut, Cfg, Srv, Err)>, [INFO] [stdout] 357 | | } [INFO] [stdout] | | - [INFO] [stdout] | | | [INFO] [stdout] | |_doesn't satisfy `<_ as ServiceFactory>::Request = ntex_mqtt::v5::PublishMessage` [INFO] [stdout] | doesn't satisfy `<_ as ServiceFactory>::Response = PublishResult` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `, TestError>>, ntex_mqtt::Session, FnServiceFactory<[closure@tests/test_server_v5.rs:111:53: 121:18], impl futures::Future, ntex_mqtt::v5::Publish, ntex_mqtt::v5::PublishAck, TestError, ()>, TestError> as ServiceFactory>::Request = ntex_mqtt::v5::PublishMessage` [INFO] [stdout] `, TestError>>, ntex_mqtt::Session, FnServiceFactory<[closure@tests/test_server_v5.rs:111:53: 121:18], impl futures::Future, ntex_mqtt::v5::Publish, ntex_mqtt::v5::PublishAck, TestError, ()>, TestError> as ServiceFactory>::Response = PublishResult` [INFO] [stdout] `>::Error = TestError` [INFO] [stdout] `PublishResult: TryFrom` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `>::Error == TestError` [INFO] [stdout] --> tests/test_server_v5.rs:149:14 [INFO] [stdout] | [INFO] [stdout] 149 | .publish(|p: Publish| ok::<_, TestError>(p.ack())) [INFO] [stdout] | ^^^^^^^ expected enum `Infallible`, found struct `TestError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0631]: type mismatch in closure arguments [INFO] [stdout] --> tests/test_server_v5.rs:149:14 [INFO] [stdout] | [INFO] [stdout] 149 | .publish(|p: Publish| ok::<_, TestError>(p.ack())) [INFO] [stdout] | ^^^^^^^ ---------------------------------------- found signature of `fn(ntex_mqtt::v5::Publish) -> _` [INFO] [stdout] | | [INFO] [stdout] | expected signature of `fn(ntex_mqtt::v5::PublishMessage) -> _` [INFO] [stdout] | [INFO] [stdout] = note: required because of the requirements on the impl of `IntoServiceFactory>>` for `[closure@tests/test_server_v5.rs:149:22: 149:62]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `control` exists for struct `ntex_mqtt::v5::MqttServer<_, St, FnServiceFactory) -> impl futures::Future {handshake::<_>}, impl futures::Future, ntex_mqtt::v5::Handshake<_>, ntex_mqtt::v5::HandshakeAck<_, St>, TestError, ()>, ntex_mqtt::v5::default::DefaultControlService, FnServiceFactory<[closure@tests/test_server_v5.rs:149:22: 149:62], _, ntex_mqtt::v5::PublishMessage, PublishResult, _, ntex_mqtt::Session>>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/test_server_v5.rs:150:14 [INFO] [stdout] | [INFO] [stdout] 150 | .control(move |msg| { [INFO] [stdout] | ^^^^^^^ method cannot be called on `ntex_mqtt::v5::MqttServer<_, St, FnServiceFactory) -> impl futures::Future {handshake::<_>}, impl futures::Future, ntex_mqtt::v5::Handshake<_>, ntex_mqtt::v5::HandshakeAck<_, St>, TestError, ()>, ntex_mqtt::v5::default::DefaultControlService, FnServiceFactory<[closure@tests/test_server_v5.rs:149:22: 149:62], _, ntex_mqtt::v5::PublishMessage, PublishResult, _, ntex_mqtt::Session>>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/ntex-service-0.1.9/src/fn_service.rs:217:1 [INFO] [stdout] | [INFO] [stdout] 217 | / pub struct FnServiceFactory [INFO] [stdout] 218 | | where [INFO] [stdout] 219 | | F: Fn(Req) -> Fut, [INFO] [stdout] 220 | | Fut: Future>, [INFO] [stdout] ... | [INFO] [stdout] 224 | | _t: PhantomData<(Req, Cfg)>, [INFO] [stdout] 225 | | } [INFO] [stdout] | | - [INFO] [stdout] | | | [INFO] [stdout] | | doesn't satisfy `<_ as ServiceFactory>::Config = ntex_mqtt::Session` [INFO] [stdout] | | doesn't satisfy `<_ as ServiceFactory>::Request = ntex_mqtt::v5::PublishMessage` [INFO] [stdout] | |_doesn't satisfy `<_ as ServiceFactory>::Response = PublishResult` [INFO] [stdout] | doesn't satisfy `_: ServiceFactory` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `> as ServiceFactory>::Config = ntex_mqtt::Session` [INFO] [stdout] `> as ServiceFactory>::Request = ntex_mqtt::v5::PublishMessage` [INFO] [stdout] `> as ServiceFactory>::Response = PublishResult` [INFO] [stdout] `FnServiceFactory<[closure@tests/test_server_v5.rs:149:22: 149:62], _, ntex_mqtt::v5::PublishMessage, PublishResult, _, ntex_mqtt::Session>: ServiceFactory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `>::Error == TestError` [INFO] [stdout] --> tests/test_server_v5.rs:183:14 [INFO] [stdout] | [INFO] [stdout] 183 | .publish(|p: Publish| { [INFO] [stdout] | ^^^^^^^ expected enum `Infallible`, found struct `TestError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0631]: type mismatch in closure arguments [INFO] [stdout] --> tests/test_server_v5.rs:183:14 [INFO] [stdout] | [INFO] [stdout] 183 | .publish(|p: Publish| { [INFO] [stdout] | ^^^^^^^ ------------ found signature of `fn(ntex_mqtt::v5::Publish) -> _` [INFO] [stdout] | | [INFO] [stdout] | expected signature of `fn(ntex_mqtt::v5::PublishMessage) -> _` [INFO] [stdout] | [INFO] [stdout] = note: required because of the requirements on the impl of `IntoServiceFactory>>` for `[closure@tests/test_server_v5.rs:183:22: 185:14]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `control` exists for struct `ntex_mqtt::v5::MqttServer<_, St, FnServiceFactory) -> impl futures::Future {handshake::<_>}, impl futures::Future, ntex_mqtt::v5::Handshake<_>, ntex_mqtt::v5::HandshakeAck<_, St>, TestError, ()>, ntex_mqtt::v5::default::DefaultControlService, FnServiceFactory<[closure@tests/test_server_v5.rs:183:22: 185:14], _, ntex_mqtt::v5::PublishMessage, PublishResult, _, ntex_mqtt::Session>>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/test_server_v5.rs:186:14 [INFO] [stdout] | [INFO] [stdout] 186 | .control(move |msg| match msg { [INFO] [stdout] | ^^^^^^^ method cannot be called on `ntex_mqtt::v5::MqttServer<_, St, FnServiceFactory) -> impl futures::Future {handshake::<_>}, impl futures::Future, ntex_mqtt::v5::Handshake<_>, ntex_mqtt::v5::HandshakeAck<_, St>, TestError, ()>, ntex_mqtt::v5::default::DefaultControlService, FnServiceFactory<[closure@tests/test_server_v5.rs:183:22: 185:14], _, ntex_mqtt::v5::PublishMessage, PublishResult, _, ntex_mqtt::Session>>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/ntex-service-0.1.9/src/fn_service.rs:217:1 [INFO] [stdout] | [INFO] [stdout] 217 | / pub struct FnServiceFactory [INFO] [stdout] 218 | | where [INFO] [stdout] 219 | | F: Fn(Req) -> Fut, [INFO] [stdout] 220 | | Fut: Future>, [INFO] [stdout] ... | [INFO] [stdout] 224 | | _t: PhantomData<(Req, Cfg)>, [INFO] [stdout] 225 | | } [INFO] [stdout] | | - [INFO] [stdout] | | | [INFO] [stdout] | | doesn't satisfy `<_ as ServiceFactory>::Config = ntex_mqtt::Session` [INFO] [stdout] | | doesn't satisfy `<_ as ServiceFactory>::Request = ntex_mqtt::v5::PublishMessage` [INFO] [stdout] | |_doesn't satisfy `<_ as ServiceFactory>::Response = PublishResult` [INFO] [stdout] | doesn't satisfy `_: ServiceFactory` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `> as ServiceFactory>::Config = ntex_mqtt::Session` [INFO] [stdout] `> as ServiceFactory>::Request = ntex_mqtt::v5::PublishMessage` [INFO] [stdout] `> as ServiceFactory>::Response = PublishResult` [INFO] [stdout] `FnServiceFactory<[closure@tests/test_server_v5.rs:183:22: 185:14], _, ntex_mqtt::v5::PublishMessage, PublishResult, _, ntex_mqtt::Session>: ServiceFactory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `>::Error == TestError` [INFO] [stdout] --> tests/test_server_v5.rs:265:14 [INFO] [stdout] | [INFO] [stdout] 265 | .publish(|p: Publish| { [INFO] [stdout] | ^^^^^^^ expected enum `Infallible`, found struct `TestError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0631]: type mismatch in closure arguments [INFO] [stdout] --> tests/test_server_v5.rs:265:14 [INFO] [stdout] | [INFO] [stdout] 265 | .publish(|p: Publish| { [INFO] [stdout] | ^^^^^^^ ------------ found signature of `fn(ntex_mqtt::v5::Publish) -> _` [INFO] [stdout] | | [INFO] [stdout] | expected signature of `fn(ntex_mqtt::v5::PublishMessage) -> _` [INFO] [stdout] | [INFO] [stdout] = note: required because of the requirements on the impl of `IntoServiceFactory>>` for `[closure@tests/test_server_v5.rs:265:22: 268:14]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `finish` exists for struct `ntex_mqtt::v5::MqttServer<_, St, FnServiceFactory) -> impl futures::Future {handshake::<_>}, impl futures::Future, ntex_mqtt::v5::Handshake<_>, ntex_mqtt::v5::HandshakeAck<_, St>, TestError, ()>, ntex_mqtt::v5::default::DefaultControlService, FnServiceFactory<[closure@tests/test_server_v5.rs:265:22: 268:14], _, ntex_mqtt::v5::PublishMessage, PublishResult, _, ntex_mqtt::Session>>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/test_server_v5.rs:269:14 [INFO] [stdout] | [INFO] [stdout] 265 | .publish(|p: Publish| { [INFO] [stdout] | ------------ [INFO] [stdout] | | [INFO] [stdout] | doesn't satisfy `<_ as FnOnce<(ntex_mqtt::v5::PublishMessage,)>>::Output = _` [INFO] [stdout] | doesn't satisfy `_: Fn<(ntex_mqtt::v5::PublishMessage,)>` [INFO] [stdout] ... [INFO] [stdout] 269 | .finish() [INFO] [stdout] | ^^^^^^ method cannot be called on `ntex_mqtt::v5::MqttServer<_, St, FnServiceFactory) -> impl futures::Future {handshake::<_>}, impl futures::Future, ntex_mqtt::v5::Handshake<_>, ntex_mqtt::v5::HandshakeAck<_, St>, TestError, ()>, ntex_mqtt::v5::default::DefaultControlService, FnServiceFactory<[closure@tests/test_server_v5.rs:265:22: 268:14], _, ntex_mqtt::v5::PublishMessage, PublishResult, _, ntex_mqtt::Session>>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/v5/publish.rs:39:1 [INFO] [stdout] | [INFO] [stdout] 39 | pub enum PublishResult { [INFO] [stdout] | ---------------------- doesn't satisfy `>::Error = TestError` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/ntex-service-0.1.9/src/fn_service.rs:217:1 [INFO] [stdout] | [INFO] [stdout] 217 | / pub struct FnServiceFactory [INFO] [stdout] 218 | | where [INFO] [stdout] 219 | | F: Fn(Req) -> Fut, [INFO] [stdout] 220 | | Fut: Future>, [INFO] [stdout] ... | [INFO] [stdout] 224 | | _t: PhantomData<(Req, Cfg)>, [INFO] [stdout] 225 | | } [INFO] [stdout] | | - [INFO] [stdout] | | | [INFO] [stdout] | | doesn't satisfy `<_ as ServiceFactory>::Config = ntex_mqtt::Session` [INFO] [stdout] | | doesn't satisfy `<_ as ServiceFactory>::Request = ntex_mqtt::v5::PublishMessage` [INFO] [stdout] | |_doesn't satisfy `<_ as ServiceFactory>::Response = PublishResult` [INFO] [stdout] | doesn't satisfy `_: ServiceFactory` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `> as ServiceFactory>::Config = ntex_mqtt::Session` [INFO] [stdout] `> as ServiceFactory>::Request = ntex_mqtt::v5::PublishMessage` [INFO] [stdout] `> as ServiceFactory>::Response = PublishResult` [INFO] [stdout] `>::Error = TestError` [INFO] [stdout] `FnServiceFactory<[closure@tests/test_server_v5.rs:265:22: 268:14], _, ntex_mqtt::v5::PublishMessage, PublishResult, _, ntex_mqtt::Session>: ServiceFactory` [INFO] [stdout] `<[closure@tests/test_server_v5.rs:265:22: 268:14] as FnOnce<(ntex_mqtt::v5::PublishMessage,)>>::Output = _` [INFO] [stdout] `[closure@tests/test_server_v5.rs:265:22: 268:14]: Fn<(ntex_mqtt::v5::PublishMessage,)>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `>::Error == TestError` [INFO] [stdout] --> tests/test_server_v5.rs:379:14 [INFO] [stdout] | [INFO] [stdout] 379 | .publish(|p: Publish| { [INFO] [stdout] | ^^^^^^^ expected enum `Infallible`, found struct `TestError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0631]: type mismatch in closure arguments [INFO] [stdout] --> tests/test_server_v5.rs:379:14 [INFO] [stdout] | [INFO] [stdout] 379 | .publish(|p: Publish| { [INFO] [stdout] | ^^^^^^^ ------------ found signature of `fn(ntex_mqtt::v5::Publish) -> _` [INFO] [stdout] | | [INFO] [stdout] | expected signature of `fn(ntex_mqtt::v5::PublishMessage) -> _` [INFO] [stdout] | [INFO] [stdout] = note: required because of the requirements on the impl of `IntoServiceFactory>>` for `[closure@tests/test_server_v5.rs:379:22: 382:14]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `control` exists for struct `ntex_mqtt::v5::MqttServer<_, St, FnServiceFactory) -> impl futures::Future {handshake::<_>}, impl futures::Future, ntex_mqtt::v5::Handshake<_>, ntex_mqtt::v5::HandshakeAck<_, St>, TestError, ()>, ntex_mqtt::v5::default::DefaultControlService, FnServiceFactory<[closure@tests/test_server_v5.rs:379:22: 382:14], _, ntex_mqtt::v5::PublishMessage, PublishResult, _, ntex_mqtt::Session>>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/test_server_v5.rs:383:14 [INFO] [stdout] | [INFO] [stdout] 383 | .control(move |msg| match msg { [INFO] [stdout] | ^^^^^^^ method cannot be called on `ntex_mqtt::v5::MqttServer<_, St, FnServiceFactory) -> impl futures::Future {handshake::<_>}, impl futures::Future, ntex_mqtt::v5::Handshake<_>, ntex_mqtt::v5::HandshakeAck<_, St>, TestError, ()>, ntex_mqtt::v5::default::DefaultControlService, FnServiceFactory<[closure@tests/test_server_v5.rs:379:22: 382:14], _, ntex_mqtt::v5::PublishMessage, PublishResult, _, ntex_mqtt::Session>>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/ntex-service-0.1.9/src/fn_service.rs:217:1 [INFO] [stdout] | [INFO] [stdout] 217 | / pub struct FnServiceFactory [INFO] [stdout] 218 | | where [INFO] [stdout] 219 | | F: Fn(Req) -> Fut, [INFO] [stdout] 220 | | Fut: Future>, [INFO] [stdout] ... | [INFO] [stdout] 224 | | _t: PhantomData<(Req, Cfg)>, [INFO] [stdout] 225 | | } [INFO] [stdout] | | - [INFO] [stdout] | | | [INFO] [stdout] | | doesn't satisfy `<_ as ServiceFactory>::Config = ntex_mqtt::Session` [INFO] [stdout] | | doesn't satisfy `<_ as ServiceFactory>::Request = ntex_mqtt::v5::PublishMessage` [INFO] [stdout] | |_doesn't satisfy `<_ as ServiceFactory>::Response = PublishResult` [INFO] [stdout] | doesn't satisfy `_: ServiceFactory` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `> as ServiceFactory>::Config = ntex_mqtt::Session` [INFO] [stdout] `> as ServiceFactory>::Request = ntex_mqtt::v5::PublishMessage` [INFO] [stdout] `> as ServiceFactory>::Response = PublishResult` [INFO] [stdout] `FnServiceFactory<[closure@tests/test_server_v5.rs:379:22: 382:14], _, ntex_mqtt::v5::PublishMessage, PublishResult, _, ntex_mqtt::Session>: ServiceFactory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0631]: type mismatch in closure arguments [INFO] [stdout] --> tests/test_server_v5.rs:444:14 [INFO] [stdout] | [INFO] [stdout] 444 | .publish(|p: Publish| async move { Ok::<_, TestError>(p.ack()) }) [INFO] [stdout] | ^^^^^^^ ----------------------- found signature of `fn(ntex_mqtt::v5::Publish) -> _` [INFO] [stdout] | | [INFO] [stdout] | expected signature of `fn(ntex_mqtt::v5::PublishMessage) -> _` [INFO] [stdout] | [INFO] [stdout] = note: required because of the requirements on the impl of `IntoServiceFactory>>` for `[closure@tests/test_server_v5.rs:444:22: 444:77]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Infallible: From<()>` is not satisfied [INFO] [stdout] --> tests/test_server_v5.rs:444:14 [INFO] [stdout] | [INFO] [stdout] 444 | .publish(|p: Publish| async move { Ok::<_, TestError>(p.ack()) }) [INFO] [stdout] | ^^^^^^^ the trait `From<()>` is not implemented for `Infallible` [INFO] [stdout] | [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] > [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `control` exists for struct `ntex_mqtt::v5::MqttServer<_, St, FnServiceFactory<[closure@tests/test_server_v5.rs:443:25: 443:89], impl futures::Future, ntex_mqtt::v5::Handshake<_>, ntex_mqtt::v5::HandshakeAck<_, St>, Infallible, ()>, ntex_mqtt::v5::default::DefaultControlService, FnServiceFactory<[closure@tests/test_server_v5.rs:444:22: 444:77], _, ntex_mqtt::v5::PublishMessage, PublishResult, _, ntex_mqtt::Session>>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/test_server_v5.rs:445:14 [INFO] [stdout] | [INFO] [stdout] 445 | .control(move |msg| match msg { [INFO] [stdout] | ^^^^^^^ method cannot be called on `ntex_mqtt::v5::MqttServer<_, St, FnServiceFactory<[closure@tests/test_server_v5.rs:443:25: 443:89], impl futures::Future, ntex_mqtt::v5::Handshake<_>, ntex_mqtt::v5::HandshakeAck<_, St>, Infallible, ()>, ntex_mqtt::v5::default::DefaultControlService, FnServiceFactory<[closure@tests/test_server_v5.rs:444:22: 444:77], _, ntex_mqtt::v5::PublishMessage, PublishResult, _, ntex_mqtt::Session>>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/ntex-service-0.1.9/src/fn_service.rs:217:1 [INFO] [stdout] | [INFO] [stdout] 217 | / pub struct FnServiceFactory [INFO] [stdout] 218 | | where [INFO] [stdout] 219 | | F: Fn(Req) -> Fut, [INFO] [stdout] 220 | | Fut: Future>, [INFO] [stdout] ... | [INFO] [stdout] 224 | | _t: PhantomData<(Req, Cfg)>, [INFO] [stdout] 225 | | } [INFO] [stdout] | | - [INFO] [stdout] | | | [INFO] [stdout] | | doesn't satisfy `<_ as ServiceFactory>::Config = ntex_mqtt::Session` [INFO] [stdout] | | doesn't satisfy `<_ as ServiceFactory>::Request = ntex_mqtt::v5::PublishMessage` [INFO] [stdout] | |_doesn't satisfy `<_ as ServiceFactory>::Response = PublishResult` [INFO] [stdout] | doesn't satisfy `_: ServiceFactory` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `> as ServiceFactory>::Config = ntex_mqtt::Session` [INFO] [stdout] `> as ServiceFactory>::Request = ntex_mqtt::v5::PublishMessage` [INFO] [stdout] `> as ServiceFactory>::Response = PublishResult` [INFO] [stdout] `FnServiceFactory<[closure@tests/test_server_v5.rs:444:22: 444:77], _, ntex_mqtt::v5::PublishMessage, PublishResult, _, ntex_mqtt::Session>: ServiceFactory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0631]: type mismatch in closure arguments [INFO] [stdout] --> tests/test_server_v5.rs:480:14 [INFO] [stdout] | [INFO] [stdout] 480 | .publish(|p: Publish| async move { Ok::<_, TestError>(p.ack()) }) [INFO] [stdout] | ^^^^^^^ ----------------------- found signature of `fn(ntex_mqtt::v5::Publish) -> _` [INFO] [stdout] | | [INFO] [stdout] | expected signature of `fn(ntex_mqtt::v5::PublishMessage) -> _` [INFO] [stdout] | [INFO] [stdout] = note: required because of the requirements on the impl of `IntoServiceFactory>>` for `[closure@tests/test_server_v5.rs:480:22: 480:77]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Infallible: From<()>` is not satisfied [INFO] [stdout] --> tests/test_server_v5.rs:480:14 [INFO] [stdout] | [INFO] [stdout] 480 | .publish(|p: Publish| async move { Ok::<_, TestError>(p.ack()) }) [INFO] [stdout] | ^^^^^^^ the trait `From<()>` is not implemented for `Infallible` [INFO] [stdout] | [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] > [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `control` exists for struct `ntex_mqtt::v5::MqttServer<_, St, FnServiceFactory<[closure@tests/test_server_v5.rs:479:25: 479:89], impl futures::Future, ntex_mqtt::v5::Handshake<_>, ntex_mqtt::v5::HandshakeAck<_, St>, Infallible, ()>, ntex_mqtt::v5::default::DefaultControlService, FnServiceFactory<[closure@tests/test_server_v5.rs:480:22: 480:77], _, ntex_mqtt::v5::PublishMessage, PublishResult, _, ntex_mqtt::Session>>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/test_server_v5.rs:481:14 [INFO] [stdout] | [INFO] [stdout] 481 | .control(move |msg| match msg { [INFO] [stdout] | ^^^^^^^ method cannot be called on `ntex_mqtt::v5::MqttServer<_, St, FnServiceFactory<[closure@tests/test_server_v5.rs:479:25: 479:89], impl futures::Future, ntex_mqtt::v5::Handshake<_>, ntex_mqtt::v5::HandshakeAck<_, St>, Infallible, ()>, ntex_mqtt::v5::default::DefaultControlService, FnServiceFactory<[closure@tests/test_server_v5.rs:480:22: 480:77], _, ntex_mqtt::v5::PublishMessage, PublishResult, _, ntex_mqtt::Session>>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/ntex-service-0.1.9/src/fn_service.rs:217:1 [INFO] [stdout] | [INFO] [stdout] 217 | / pub struct FnServiceFactory [INFO] [stdout] 218 | | where [INFO] [stdout] 219 | | F: Fn(Req) -> Fut, [INFO] [stdout] 220 | | Fut: Future>, [INFO] [stdout] ... | [INFO] [stdout] 224 | | _t: PhantomData<(Req, Cfg)>, [INFO] [stdout] 225 | | } [INFO] [stdout] | | - [INFO] [stdout] | | | [INFO] [stdout] | | doesn't satisfy `<_ as ServiceFactory>::Config = ntex_mqtt::Session` [INFO] [stdout] | | doesn't satisfy `<_ as ServiceFactory>::Request = ntex_mqtt::v5::PublishMessage` [INFO] [stdout] | |_doesn't satisfy `<_ as ServiceFactory>::Response = PublishResult` [INFO] [stdout] | doesn't satisfy `_: ServiceFactory` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `> as ServiceFactory>::Config = ntex_mqtt::Session` [INFO] [stdout] `> as ServiceFactory>::Request = ntex_mqtt::v5::PublishMessage` [INFO] [stdout] `> as ServiceFactory>::Response = PublishResult` [INFO] [stdout] `FnServiceFactory<[closure@tests/test_server_v5.rs:480:22: 480:77], _, ntex_mqtt::v5::PublishMessage, PublishResult, _, ntex_mqtt::Session>: ServiceFactory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0631]: type mismatch in closure arguments [INFO] [stdout] --> tests/test_server_v5.rs:534:10 [INFO] [stdout] | [INFO] [stdout] 534 | .publish(|p: Publish| { [INFO] [stdout] | ^^^^^^^ ------------ found signature of `fn(ntex_mqtt::v5::Publish) -> _` [INFO] [stdout] | | [INFO] [stdout] | expected signature of `fn(ntex_mqtt::v5::PublishMessage) -> _` [INFO] [stdout] | [INFO] [stdout] = note: required because of the requirements on the impl of `IntoServiceFactory>>` for `[closure@tests/test_server_v5.rs:534:18: 536:10]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Infallible: From<()>` is not satisfied [INFO] [stdout] --> tests/test_server_v5.rs:534:10 [INFO] [stdout] | [INFO] [stdout] 534 | .publish(|p: Publish| { [INFO] [stdout] | ^^^^^^^ the trait `From<()>` is not implemented for `Infallible` [INFO] [stdout] | [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] > [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `control` exists for struct `ntex_mqtt::v5::MqttServer<_, St, FnServiceFactory<[closure@tests/test_server_v5.rs:518:25: 533:10], impl futures::Future, ntex_mqtt::v5::Handshake<_>, ntex_mqtt::v5::HandshakeAck<_, St>, Infallible, ()>, ntex_mqtt::v5::default::DefaultControlService, FnServiceFactory<[closure@tests/test_server_v5.rs:534:18: 536:10], _, ntex_mqtt::v5::PublishMessage, PublishResult, _, ntex_mqtt::Session>>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/test_server_v5.rs:537:10 [INFO] [stdout] | [INFO] [stdout] 537 | .control(move |msg| match msg { [INFO] [stdout] | ^^^^^^^ method cannot be called on `ntex_mqtt::v5::MqttServer<_, St, FnServiceFactory<[closure@tests/test_server_v5.rs:518:25: 533:10], impl futures::Future, ntex_mqtt::v5::Handshake<_>, ntex_mqtt::v5::HandshakeAck<_, St>, Infallible, ()>, ntex_mqtt::v5::default::DefaultControlService, FnServiceFactory<[closure@tests/test_server_v5.rs:534:18: 536:10], _, ntex_mqtt::v5::PublishMessage, PublishResult, _, ntex_mqtt::Session>>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/ntex-service-0.1.9/src/fn_service.rs:217:1 [INFO] [stdout] | [INFO] [stdout] 217 | / pub struct FnServiceFactory [INFO] [stdout] 218 | | where [INFO] [stdout] 219 | | F: Fn(Req) -> Fut, [INFO] [stdout] 220 | | Fut: Future>, [INFO] [stdout] ... | [INFO] [stdout] 224 | | _t: PhantomData<(Req, Cfg)>, [INFO] [stdout] 225 | | } [INFO] [stdout] | | - [INFO] [stdout] | | | [INFO] [stdout] | | doesn't satisfy `<_ as ServiceFactory>::Config = ntex_mqtt::Session` [INFO] [stdout] | | doesn't satisfy `<_ as ServiceFactory>::Request = ntex_mqtt::v5::PublishMessage` [INFO] [stdout] | |_doesn't satisfy `<_ as ServiceFactory>::Response = PublishResult` [INFO] [stdout] | doesn't satisfy `_: ServiceFactory` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `> as ServiceFactory>::Config = ntex_mqtt::Session` [INFO] [stdout] `> as ServiceFactory>::Request = ntex_mqtt::v5::PublishMessage` [INFO] [stdout] `> as ServiceFactory>::Response = PublishResult` [INFO] [stdout] `FnServiceFactory<[closure@tests/test_server_v5.rs:534:18: 536:10], _, ntex_mqtt::v5::PublishMessage, PublishResult, _, ntex_mqtt::Session>: ServiceFactory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0631]: type mismatch in closure arguments [INFO] [stdout] --> tests/test_server_v5.rs:578:10 [INFO] [stdout] | [INFO] [stdout] 578 | .publish(|p: Publish| { [INFO] [stdout] | ^^^^^^^ ------------ found signature of `fn(ntex_mqtt::v5::Publish) -> _` [INFO] [stdout] | | [INFO] [stdout] | expected signature of `fn(ntex_mqtt::v5::PublishMessage) -> _` [INFO] [stdout] | [INFO] [stdout] = note: required because of the requirements on the impl of `IntoServiceFactory>>` for `[closure@tests/test_server_v5.rs:578:18: 580:10]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Infallible: From<()>` is not satisfied [INFO] [stdout] --> tests/test_server_v5.rs:578:10 [INFO] [stdout] | [INFO] [stdout] 578 | .publish(|p: Publish| { [INFO] [stdout] | ^^^^^^^ the trait `From<()>` is not implemented for `Infallible` [INFO] [stdout] | [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] > [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `control` exists for struct `ntex_mqtt::v5::MqttServer<_, St, FnServiceFactory<[closure@tests/test_server_v5.rs:564:25: 577:10], impl futures::Future, ntex_mqtt::v5::Handshake<_>, ntex_mqtt::v5::HandshakeAck<_, St>, Infallible, ()>, ntex_mqtt::v5::default::DefaultControlService, FnServiceFactory<[closure@tests/test_server_v5.rs:578:18: 580:10], _, ntex_mqtt::v5::PublishMessage, PublishResult, _, ntex_mqtt::Session>>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/test_server_v5.rs:581:10 [INFO] [stdout] | [INFO] [stdout] 581 | .control(move |msg| match msg { [INFO] [stdout] | ^^^^^^^ method cannot be called on `ntex_mqtt::v5::MqttServer<_, St, FnServiceFactory<[closure@tests/test_server_v5.rs:564:25: 577:10], impl futures::Future, ntex_mqtt::v5::Handshake<_>, ntex_mqtt::v5::HandshakeAck<_, St>, Infallible, ()>, ntex_mqtt::v5::default::DefaultControlService, FnServiceFactory<[closure@tests/test_server_v5.rs:578:18: 580:10], _, ntex_mqtt::v5::PublishMessage, PublishResult, _, ntex_mqtt::Session>>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/ntex-service-0.1.9/src/fn_service.rs:217:1 [INFO] [stdout] | [INFO] [stdout] 217 | / pub struct FnServiceFactory [INFO] [stdout] 218 | | where [INFO] [stdout] 219 | | F: Fn(Req) -> Fut, [INFO] [stdout] 220 | | Fut: Future>, [INFO] [stdout] ... | [INFO] [stdout] 224 | | _t: PhantomData<(Req, Cfg)>, [INFO] [stdout] 225 | | } [INFO] [stdout] | | - [INFO] [stdout] | | | [INFO] [stdout] | | doesn't satisfy `<_ as ServiceFactory>::Config = ntex_mqtt::Session` [INFO] [stdout] | | doesn't satisfy `<_ as ServiceFactory>::Request = ntex_mqtt::v5::PublishMessage` [INFO] [stdout] | |_doesn't satisfy `<_ as ServiceFactory>::Response = PublishResult` [INFO] [stdout] | doesn't satisfy `_: ServiceFactory` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `> as ServiceFactory>::Config = ntex_mqtt::Session` [INFO] [stdout] `> as ServiceFactory>::Request = ntex_mqtt::v5::PublishMessage` [INFO] [stdout] `> as ServiceFactory>::Response = PublishResult` [INFO] [stdout] `FnServiceFactory<[closure@tests/test_server_v5.rs:578:18: 580:10], _, ntex_mqtt::v5::PublishMessage, PublishResult, _, ntex_mqtt::Session>: ServiceFactory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0631]: type mismatch in closure arguments [INFO] [stdout] --> tests/test_server_v5.rs:609:14 [INFO] [stdout] | [INFO] [stdout] 609 | .publish(|p: Publish| async move { [INFO] [stdout] | ^^^^^^^ ----------------------- found signature of `fn(ntex_mqtt::v5::Publish) -> _` [INFO] [stdout] | | [INFO] [stdout] | expected signature of `fn(ntex_mqtt::v5::PublishMessage) -> _` [INFO] [stdout] | [INFO] [stdout] = note: required because of the requirements on the impl of `IntoServiceFactory>>` for `[closure@tests/test_server_v5.rs:609:22: 620:14]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Infallible: From<()>` is not satisfied [INFO] [stdout] --> tests/test_server_v5.rs:609:14 [INFO] [stdout] | [INFO] [stdout] 609 | .publish(|p: Publish| async move { [INFO] [stdout] | ^^^^^^^ the trait `From<()>` is not implemented for `Infallible` [INFO] [stdout] | [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] > [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `finish` exists for struct `ntex_mqtt::v5::MqttServer<_, St, FnServiceFactory<[closure@tests/test_server_v5.rs:608:25: 608:75], impl futures::Future, ntex_mqtt::v5::Handshake<_>, ntex_mqtt::v5::HandshakeAck<_, St>, Infallible, ()>, ntex_mqtt::v5::default::DefaultControlService, FnServiceFactory<[closure@tests/test_server_v5.rs:609:22: 620:14], _, ntex_mqtt::v5::PublishMessage, PublishResult, _, ntex_mqtt::Session>>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/test_server_v5.rs:621:14 [INFO] [stdout] | [INFO] [stdout] 609 | .publish(|p: Publish| async move { [INFO] [stdout] | ----------------------- [INFO] [stdout] | | [INFO] [stdout] | doesn't satisfy `<_ as FnOnce<(ntex_mqtt::v5::PublishMessage,)>>::Output = _` [INFO] [stdout] | doesn't satisfy `_: Fn<(ntex_mqtt::v5::PublishMessage,)>` [INFO] [stdout] ... [INFO] [stdout] 621 | .finish() [INFO] [stdout] | ^^^^^^ method cannot be called on `ntex_mqtt::v5::MqttServer<_, St, FnServiceFactory<[closure@tests/test_server_v5.rs:608:25: 608:75], impl futures::Future, ntex_mqtt::v5::Handshake<_>, ntex_mqtt::v5::HandshakeAck<_, St>, Infallible, ()>, ntex_mqtt::v5::default::DefaultControlService, FnServiceFactory<[closure@tests/test_server_v5.rs:609:22: 620:14], _, ntex_mqtt::v5::PublishMessage, PublishResult, _, ntex_mqtt::Session>>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/ntex-service-0.1.9/src/fn_service.rs:217:1 [INFO] [stdout] | [INFO] [stdout] 217 | / pub struct FnServiceFactory [INFO] [stdout] 218 | | where [INFO] [stdout] 219 | | F: Fn(Req) -> Fut, [INFO] [stdout] 220 | | Fut: Future>, [INFO] [stdout] ... | [INFO] [stdout] 224 | | _t: PhantomData<(Req, Cfg)>, [INFO] [stdout] 225 | | } [INFO] [stdout] | | - [INFO] [stdout] | | | [INFO] [stdout] | | doesn't satisfy `<_ as ServiceFactory>::Config = ntex_mqtt::Session` [INFO] [stdout] | | doesn't satisfy `<_ as ServiceFactory>::Request = ntex_mqtt::v5::PublishMessage` [INFO] [stdout] | |_doesn't satisfy `<_ as ServiceFactory>::Response = PublishResult` [INFO] [stdout] | doesn't satisfy `_: ServiceFactory` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `> as ServiceFactory>::Config = ntex_mqtt::Session` [INFO] [stdout] `> as ServiceFactory>::Request = ntex_mqtt::v5::PublishMessage` [INFO] [stdout] `> as ServiceFactory>::Response = PublishResult` [INFO] [stdout] `Infallible: From<()>` [INFO] [stdout] `FnServiceFactory<[closure@tests/test_server_v5.rs:609:22: 620:14], _, ntex_mqtt::v5::PublishMessage, PublishResult, _, ntex_mqtt::Session>: ServiceFactory` [INFO] [stdout] `<[closure@tests/test_server_v5.rs:609:22: 620:14] as FnOnce<(ntex_mqtt::v5::PublishMessage,)>>::Output = _` [INFO] [stdout] `[closure@tests/test_server_v5.rs:609:22: 620:14]: Fn<(ntex_mqtt::v5::PublishMessage,)>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `finish` exists for struct `ntex_mqtt::v5::MqttServer<_, St, FnServiceFactory) -> impl futures::Future {handshake::<_>}, impl futures::Future, ntex_mqtt::v5::Handshake<_>, ntex_mqtt::v5::HandshakeAck<_, St>, TestError, ()>, FnServiceFactory<[closure@tests/test_server_v5.rs:650:22: 658:14], futures::future::Ready>, ntex_mqtt::v5::ControlMessage, ntex_mqtt::v5::ControlResult, TestError, ntex_mqtt::Session>, ntex_mqtt::v5::default::DefaultPublishService>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/test_server_v5.rs:659:14 [INFO] [stdout] | [INFO] [stdout] 659 | .finish() [INFO] [stdout] | ^^^^^^ method cannot be called on `ntex_mqtt::v5::MqttServer<_, St, FnServiceFactory) -> impl futures::Future {handshake::<_>}, impl futures::Future, ntex_mqtt::v5::Handshake<_>, ntex_mqtt::v5::HandshakeAck<_, St>, TestError, ()>, FnServiceFactory<[closure@tests/test_server_v5.rs:650:22: 658:14], futures::future::Ready>, ntex_mqtt::v5::ControlMessage, ntex_mqtt::v5::ControlResult, TestError, ntex_mqtt::Session>, ntex_mqtt::v5::default::DefaultPublishService>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/v5/publish.rs:39:1 [INFO] [stdout] | [INFO] [stdout] 39 | pub enum PublishResult { [INFO] [stdout] | ---------------------- [INFO] [stdout] | | [INFO] [stdout] | doesn't satisfy `<_ as TryFrom>::Error = TestError` [INFO] [stdout] | doesn't satisfy `PublishResult: TryFrom` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `>::Error = TestError` [INFO] [stdout] `PublishResult: TryFrom` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 41 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0271, E0277, E0599, E0631. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0271`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "95511783d5314818f1167305da8c31810f70ce8081ebdac241a00b1909873a7a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "95511783d5314818f1167305da8c31810f70ce8081ebdac241a00b1909873a7a", kill_on_drop: false }` [INFO] [stdout] 95511783d5314818f1167305da8c31810f70ce8081ebdac241a00b1909873a7a