[INFO] fetching crate deribit-websocket 0.1.1... [INFO] checking deribit-websocket-0.1.1 against try#c659ee110de67e82444e4b6c8407c1a9af9c2cf6 for pr-145608-1 [INFO] extracting crate deribit-websocket 0.1.1 into /workspace/builds/worker-4-tc2/source [INFO] removed /workspace/builds/worker-4-tc2/source/rust-toolchain.toml [INFO] started tweaking crates.io crate deribit-websocket 0.1.1 [INFO] removed 0 missing examples [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate deribit-websocket 0.1.1 [INFO] tweaked toml for crates.io crate deribit-websocket 0.1.1 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate deribit-websocket 0.1.1 on toolchain c659ee110de67e82444e4b6c8407c1a9af9c2cf6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate deribit-websocket 0.1.1 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] de76178442636e3ac779ebc2fe1234ca61d29b86e8f44d680f3e9c591558f961 [INFO] running `Command { std: "docker" "start" "-a" "de76178442636e3ac779ebc2fe1234ca61d29b86e8f44d680f3e9c591558f961", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "de76178442636e3ac779ebc2fe1234ca61d29b86e8f44d680f3e9c591558f961", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "de76178442636e3ac779ebc2fe1234ca61d29b86e8f44d680f3e9c591558f961", kill_on_drop: false }` [INFO] [stdout] de76178442636e3ac779ebc2fe1234ca61d29b86e8f44d680f3e9c591558f961 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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" "RUSTDOCFLAGS=--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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 080995115bfd6f606f9b521e12ddaf0c56a77d9351976deec3dd6b5a44944fe4 [INFO] running `Command { std: "docker" "start" "-a" "080995115bfd6f606f9b521e12ddaf0c56a77d9351976deec3dd6b5a44944fe4", kill_on_drop: false }` [INFO] [stderr] Compiling cc v1.2.30 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling thiserror v2.0.15 [INFO] [stderr] Compiling thiserror-impl v2.0.15 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking rand v0.9.2 [INFO] [stderr] Compiling serde_json v1.0.141 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking zerovec v0.11.4 [INFO] [stderr] Checking webpki-roots v0.26.11 [INFO] [stderr] Checking chrono v0.4.41 [INFO] [stderr] Checking sdd v3.0.10 [INFO] [stderr] Compiling serial_test_derive v3.2.0 [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Checking tokio v1.47.1 [INFO] [stderr] Checking scc v2.3.4 [INFO] [stderr] Checking tinystr v0.8.1 [INFO] [stderr] Checking potential_utf v0.1.2 [INFO] [stderr] Checking icu_collections v2.0.0 [INFO] [stderr] Compiling cmake v0.1.54 [INFO] [stderr] Checking icu_locale_core v2.0.0 [INFO] [stderr] Compiling aws-lc-sys v0.30.0 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking tracing-subscriber v0.3.19 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Checking serial_test v3.2.0 [INFO] [stderr] Checking deribit-base v0.2.0 [INFO] [stderr] Compiling aws-lc-rs v1.13.3 [INFO] [stderr] Compiling rustls v0.23.31 [INFO] [stderr] Checking rustls-webpki v0.103.4 [INFO] [stderr] Checking tungstenite v0.27.0 [INFO] [stderr] Checking tokio-rustls v0.26.2 [INFO] [stderr] Checking tokio-tungstenite v0.27.0 [INFO] [stderr] Checking deribit-websocket v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] error[E0275]: overflow evaluating the requirement `&mut tokio_tungstenite::WebSocketStream>: Send` [INFO] [stdout] | [INFO] [stdout] = help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`quote_subscription`) [INFO] [stdout] note: required because it appears within the type `Next<'_, WebSocketStream>>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.31/src/stream/stream/next.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Next<'a, St: ?Sized> { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:203:75 [INFO] [stdout] | [INFO] [stdout] 203 | pub async fn receive_message(&self) -> Result { [INFO] [stdout] | ___________________________________________________________________________^ [INFO] [stdout] 204 | | let mut connection = self.connection.lock().await; [INFO] [stdout] 205 | | connection.receive().await [INFO] [stdout] 206 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:406:83 [INFO] [stdout] | [INFO] [stdout] 406 | pub async fn receive_and_process_message(&self) -> Result<(), WebSocketError> { [INFO] [stdout] | ___________________________________________________________________________________^ [INFO] [stdout] 407 | | let message = self.receive_message().await?; [INFO] [stdout] 408 | | [INFO] [stdout] 409 | | if let Some(handler) = &self.message_handler { [INFO] [stdout] ... | [INFO] [stdout] 413 | | Ok(()) [INFO] [stdout] 414 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:419:85 [INFO] [stdout] | [INFO] [stdout] 419 | pub async fn start_message_processing_loop(&self) -> Result<(), WebSocketError> { [INFO] [stdout] | _____________________________________________________________________________________^ [INFO] [stdout] 420 | | if self.message_handler.is_none() { [INFO] [stdout] 421 | | return Err(WebSocketError::InvalidMessage( [INFO] [stdout] 422 | | "No message handler set. Use set_message_handler() first.".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 442 | | Ok(()) [INFO] [stdout] 443 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` block [INFO] [stdout] --> examples/quote_subscription.rs:121:40 [INFO] [stdout] | [INFO] [stdout] 121 | let processing_task = tokio::spawn(async move { client.start_message_processing_loop().await }); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/examples/quote_subscription-51cd53092eea7ffa.long-type-15351388058582524796.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0275]: overflow evaluating the requirement `&mut tokio_tungstenite::WebSocketStream>: Send` [INFO] [stdout] | [INFO] [stdout] = help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`user_orders_subscription`) [INFO] [stdout] note: required because it appears within the type `Next<'_, WebSocketStream>>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.31/src/stream/stream/next.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Next<'a, St: ?Sized> { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:203:75 [INFO] [stdout] | [INFO] [stdout] 203 | pub async fn receive_message(&self) -> Result { [INFO] [stdout] | ___________________________________________________________________________^ [INFO] [stdout] 204 | | let mut connection = self.connection.lock().await; [INFO] [stdout] 205 | | connection.receive().await [INFO] [stdout] 206 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:406:83 [INFO] [stdout] | [INFO] [stdout] 406 | pub async fn receive_and_process_message(&self) -> Result<(), WebSocketError> { [INFO] [stdout] | ___________________________________________________________________________________^ [INFO] [stdout] 407 | | let message = self.receive_message().await?; [INFO] [stdout] 408 | | [INFO] [stdout] 409 | | if let Some(handler) = &self.message_handler { [INFO] [stdout] ... | [INFO] [stdout] 413 | | Ok(()) [INFO] [stdout] 414 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:419:85 [INFO] [stdout] | [INFO] [stdout] 419 | pub async fn start_message_processing_loop(&self) -> Result<(), WebSocketError> { [INFO] [stdout] | _____________________________________________________________________________________^ [INFO] [stdout] 420 | | if self.message_handler.is_none() { [INFO] [stdout] 421 | | return Err(WebSocketError::InvalidMessage( [INFO] [stdout] 422 | | "No message handler set. Use set_message_handler() first.".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 442 | | Ok(()) [INFO] [stdout] 443 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` block [INFO] [stdout] --> examples/user_orders_subscription.rs:134:40 [INFO] [stdout] | [INFO] [stdout] 134 | let processing_task = tokio::spawn(async move { client.start_message_processing_loop().await }); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/examples/user_orders_subscription-b2504e0ad1d41c24.long-type-8911724700751730791.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0275]: overflow evaluating the requirement `&mut tokio_tungstenite::WebSocketStream>: Send` [INFO] [stdout] --> examples/quote_subscription.rs:121:27 [INFO] [stdout] | [INFO] [stdout] 121 | let processing_task = tokio::spawn(async move { client.start_message_processing_loop().await }); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`quote_subscription`) [INFO] [stdout] note: required because it appears within the type `Next<'_, WebSocketStream>>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.31/src/stream/stream/next.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Next<'a, St: ?Sized> { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:203:75 [INFO] [stdout] | [INFO] [stdout] 203 | pub async fn receive_message(&self) -> Result { [INFO] [stdout] | ___________________________________________________________________________^ [INFO] [stdout] 204 | | let mut connection = self.connection.lock().await; [INFO] [stdout] 205 | | connection.receive().await [INFO] [stdout] 206 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:406:83 [INFO] [stdout] | [INFO] [stdout] 406 | pub async fn receive_and_process_message(&self) -> Result<(), WebSocketError> { [INFO] [stdout] | ___________________________________________________________________________________^ [INFO] [stdout] 407 | | let message = self.receive_message().await?; [INFO] [stdout] 408 | | [INFO] [stdout] 409 | | if let Some(handler) = &self.message_handler { [INFO] [stdout] ... | [INFO] [stdout] 413 | | Ok(()) [INFO] [stdout] 414 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:419:85 [INFO] [stdout] | [INFO] [stdout] 419 | pub async fn start_message_processing_loop(&self) -> Result<(), WebSocketError> { [INFO] [stdout] | _____________________________________________________________________________________^ [INFO] [stdout] 420 | | if self.message_handler.is_none() { [INFO] [stdout] 421 | | return Err(WebSocketError::InvalidMessage( [INFO] [stdout] 422 | | "No message handler set. Use set_message_handler() first.".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 442 | | Ok(()) [INFO] [stdout] 443 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` block [INFO] [stdout] --> examples/quote_subscription.rs:121:40 [INFO] [stdout] | [INFO] [stdout] 121 | let processing_task = tokio::spawn(async move { client.start_message_processing_loop().await }); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `tokio::spawn` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.47.1/src/task/spawn.rs:168:21 [INFO] [stdout] | [INFO] [stdout] 166 | pub fn spawn(future: F) -> JoinHandle [INFO] [stdout] | ----- required by a bound in this function [INFO] [stdout] 167 | where [INFO] [stdout] 168 | F: Future + Send + 'static, [INFO] [stdout] | ^^^^ required by this bound in `spawn` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/examples/quote_subscription-51cd53092eea7ffa.long-type-15351388058582524796.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0275]: overflow evaluating the requirement `&mut tokio_tungstenite::WebSocketStream>: Send` [INFO] [stdout] --> examples/user_orders_subscription.rs:134:27 [INFO] [stdout] | [INFO] [stdout] 134 | let processing_task = tokio::spawn(async move { client.start_message_processing_loop().await }); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`user_orders_subscription`) [INFO] [stdout] note: required because it appears within the type `Next<'_, WebSocketStream>>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.31/src/stream/stream/next.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Next<'a, St: ?Sized> { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:203:75 [INFO] [stdout] | [INFO] [stdout] 203 | pub async fn receive_message(&self) -> Result { [INFO] [stdout] | ___________________________________________________________________________^ [INFO] [stdout] 204 | | let mut connection = self.connection.lock().await; [INFO] [stdout] 205 | | connection.receive().await [INFO] [stdout] 206 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:406:83 [INFO] [stdout] | [INFO] [stdout] 406 | pub async fn receive_and_process_message(&self) -> Result<(), WebSocketError> { [INFO] [stdout] | ___________________________________________________________________________________^ [INFO] [stdout] 407 | | let message = self.receive_message().await?; [INFO] [stdout] 408 | | [INFO] [stdout] 409 | | if let Some(handler) = &self.message_handler { [INFO] [stdout] ... | [INFO] [stdout] 413 | | Ok(()) [INFO] [stdout] 414 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:419:85 [INFO] [stdout] | [INFO] [stdout] 419 | pub async fn start_message_processing_loop(&self) -> Result<(), WebSocketError> { [INFO] [stdout] | _____________________________________________________________________________________^ [INFO] [stdout] 420 | | if self.message_handler.is_none() { [INFO] [stdout] 421 | | return Err(WebSocketError::InvalidMessage( [INFO] [stdout] 422 | | "No message handler set. Use set_message_handler() first.".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 442 | | Ok(()) [INFO] [stdout] 443 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` block [INFO] [stdout] --> examples/user_orders_subscription.rs:134:40 [INFO] [stdout] | [INFO] [stdout] 134 | let processing_task = tokio::spawn(async move { client.start_message_processing_loop().await }); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `tokio::spawn` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.47.1/src/task/spawn.rs:168:21 [INFO] [stdout] | [INFO] [stdout] 166 | pub fn spawn(future: F) -> JoinHandle [INFO] [stdout] | ----- required by a bound in this function [INFO] [stdout] 167 | where [INFO] [stdout] 168 | F: Future + Send + 'static, [INFO] [stdout] | ^^^^ required by this bound in `spawn` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/examples/user_orders_subscription-b2504e0ad1d41c24.long-type-8911724700751730791.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0275`. [INFO] [stdout] [INFO] [stdout] error[E0275]: overflow evaluating the requirement `&mut tokio_tungstenite::WebSocketStream>: Send` [INFO] [stdout] | [INFO] [stdout] = help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`callback_example`) [INFO] [stdout] note: required because it appears within the type `Next<'_, WebSocketStream>>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.31/src/stream/stream/next.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Next<'a, St: ?Sized> { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:203:75 [INFO] [stdout] | [INFO] [stdout] 203 | pub async fn receive_message(&self) -> Result { [INFO] [stdout] | ___________________________________________________________________________^ [INFO] [stdout] 204 | | let mut connection = self.connection.lock().await; [INFO] [stdout] 205 | | connection.receive().await [INFO] [stdout] 206 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:406:83 [INFO] [stdout] | [INFO] [stdout] 406 | pub async fn receive_and_process_message(&self) -> Result<(), WebSocketError> { [INFO] [stdout] | ___________________________________________________________________________________^ [INFO] [stdout] 407 | | let message = self.receive_message().await?; [INFO] [stdout] 408 | | [INFO] [stdout] 409 | | if let Some(handler) = &self.message_handler { [INFO] [stdout] ... | [INFO] [stdout] 413 | | Ok(()) [INFO] [stdout] 414 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:419:85 [INFO] [stdout] | [INFO] [stdout] 419 | pub async fn start_message_processing_loop(&self) -> Result<(), WebSocketError> { [INFO] [stdout] | _____________________________________________________________________________________^ [INFO] [stdout] 420 | | if self.message_handler.is_none() { [INFO] [stdout] 421 | | return Err(WebSocketError::InvalidMessage( [INFO] [stdout] 422 | | "No message handler set. Use set_message_handler() first.".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 442 | | Ok(()) [INFO] [stdout] 443 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` block [INFO] [stdout] --> examples/callback_example.rs:123:40 [INFO] [stdout] | [INFO] [stdout] 123 | let processing_task = tokio::spawn(async move { client.start_message_processing_loop().await }); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/examples/callback_example-61a2420f46d089df.long-type-15089644194589109947.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0275]: overflow evaluating the requirement `&mut tokio_tungstenite::WebSocketStream>: Send` [INFO] [stdout] --> examples/callback_example.rs:123:27 [INFO] [stdout] | [INFO] [stdout] 123 | let processing_task = tokio::spawn(async move { client.start_message_processing_loop().await }); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`callback_example`) [INFO] [stdout] note: required because it appears within the type `Next<'_, WebSocketStream>>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.31/src/stream/stream/next.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Next<'a, St: ?Sized> { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:203:75 [INFO] [stdout] | [INFO] [stdout] 203 | pub async fn receive_message(&self) -> Result { [INFO] [stdout] | ___________________________________________________________________________^ [INFO] [stdout] 204 | | let mut connection = self.connection.lock().await; [INFO] [stdout] 205 | | connection.receive().await [INFO] [stdout] 206 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:406:83 [INFO] [stdout] | [INFO] [stdout] 406 | pub async fn receive_and_process_message(&self) -> Result<(), WebSocketError> { [INFO] [stdout] | ___________________________________________________________________________________^ [INFO] [stdout] 407 | | let message = self.receive_message().await?; [INFO] [stdout] 408 | | [INFO] [stdout] 409 | | if let Some(handler) = &self.message_handler { [INFO] [stdout] ... | [INFO] [stdout] 413 | | Ok(()) [INFO] [stdout] 414 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:419:85 [INFO] [stdout] | [INFO] [stdout] 419 | pub async fn start_message_processing_loop(&self) -> Result<(), WebSocketError> { [INFO] [stdout] | _____________________________________________________________________________________^ [INFO] [stdout] 420 | | if self.message_handler.is_none() { [INFO] [stdout] 421 | | return Err(WebSocketError::InvalidMessage( [INFO] [stdout] 422 | | "No message handler set. Use set_message_handler() first.".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 442 | | Ok(()) [INFO] [stdout] 443 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` block [INFO] [stdout] --> examples/callback_example.rs:123:40 [INFO] [stdout] | [INFO] [stdout] 123 | let processing_task = tokio::spawn(async move { client.start_message_processing_loop().await }); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `tokio::spawn` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.47.1/src/task/spawn.rs:168:21 [INFO] [stdout] | [INFO] [stdout] 166 | pub fn spawn(future: F) -> JoinHandle [INFO] [stdout] | ----- required by a bound in this function [INFO] [stdout] 167 | where [INFO] [stdout] 168 | F: Future + Send + 'static, [INFO] [stdout] | ^^^^ required by this bound in `spawn` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/examples/callback_example-61a2420f46d089df.long-type-15089644194589109947.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0275`. [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0275`. [INFO] [stdout] [INFO] [stderr] error: could not compile `deribit-websocket` (example "callback_example") due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0275]: overflow evaluating the requirement `&mut tokio_tungstenite::WebSocketStream>: Send` [INFO] [stdout] | [INFO] [stdout] = help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`portfolio_subscription`) [INFO] [stdout] note: required because it appears within the type `Next<'_, WebSocketStream>>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.31/src/stream/stream/next.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Next<'a, St: ?Sized> { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:203:75 [INFO] [stdout] | [INFO] [stdout] 203 | pub async fn receive_message(&self) -> Result { [INFO] [stdout] | ___________________________________________________________________________^ [INFO] [stdout] 204 | | let mut connection = self.connection.lock().await; [INFO] [stdout] 205 | | connection.receive().await [INFO] [stdout] 206 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:406:83 [INFO] [stdout] | [INFO] [stdout] 406 | pub async fn receive_and_process_message(&self) -> Result<(), WebSocketError> { [INFO] [stdout] | ___________________________________________________________________________________^ [INFO] [stdout] 407 | | let message = self.receive_message().await?; [INFO] [stdout] 408 | | [INFO] [stdout] 409 | | if let Some(handler) = &self.message_handler { [INFO] [stdout] ... | [INFO] [stdout] 413 | | Ok(()) [INFO] [stdout] 414 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:419:85 [INFO] [stdout] | [INFO] [stdout] 419 | pub async fn start_message_processing_loop(&self) -> Result<(), WebSocketError> { [INFO] [stdout] | _____________________________________________________________________________________^ [INFO] [stdout] 420 | | if self.message_handler.is_none() { [INFO] [stdout] 421 | | return Err(WebSocketError::InvalidMessage( [INFO] [stdout] 422 | | "No message handler set. Use set_message_handler() first.".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 442 | | Ok(()) [INFO] [stdout] 443 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` block [INFO] [stdout] --> examples/portfolio_subscription.rs:143:40 [INFO] [stdout] | [INFO] [stdout] 143 | let processing_task = tokio::spawn(async move { client.start_message_processing_loop().await }); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/examples/portfolio_subscription-b7c416adde266aea.long-type-9211648160665150221.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `deribit-websocket` (example "user_orders_subscription") due to 2 previous errors [INFO] [stderr] error: could not compile `deribit-websocket` (example "quote_subscription") due to 2 previous errors [INFO] [stdout] error[E0275]: overflow evaluating the requirement `&mut tokio_tungstenite::WebSocketStream>: Send` [INFO] [stdout] | [INFO] [stdout] = help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`trades_subscription`) [INFO] [stdout] note: required because it appears within the type `Next<'_, WebSocketStream>>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.31/src/stream/stream/next.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Next<'a, St: ?Sized> { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:203:75 [INFO] [stdout] | [INFO] [stdout] 203 | pub async fn receive_message(&self) -> Result { [INFO] [stdout] | ___________________________________________________________________________^ [INFO] [stdout] 204 | | let mut connection = self.connection.lock().await; [INFO] [stdout] 205 | | connection.receive().await [INFO] [stdout] 206 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:406:83 [INFO] [stdout] | [INFO] [stdout] 406 | pub async fn receive_and_process_message(&self) -> Result<(), WebSocketError> { [INFO] [stdout] | ___________________________________________________________________________________^ [INFO] [stdout] 407 | | let message = self.receive_message().await?; [INFO] [stdout] 408 | | [INFO] [stdout] 409 | | if let Some(handler) = &self.message_handler { [INFO] [stdout] ... | [INFO] [stdout] 413 | | Ok(()) [INFO] [stdout] 414 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:419:85 [INFO] [stdout] | [INFO] [stdout] 419 | pub async fn start_message_processing_loop(&self) -> Result<(), WebSocketError> { [INFO] [stdout] | _____________________________________________________________________________________^ [INFO] [stdout] 420 | | if self.message_handler.is_none() { [INFO] [stdout] 421 | | return Err(WebSocketError::InvalidMessage( [INFO] [stdout] 422 | | "No message handler set. Use set_message_handler() first.".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 442 | | Ok(()) [INFO] [stdout] 443 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` block [INFO] [stdout] --> examples/trades_subscription.rs:135:40 [INFO] [stdout] | [INFO] [stdout] 135 | let processing_task = tokio::spawn(async move { client.start_message_processing_loop().await }); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/examples/trades_subscription-19039ae4f28a0fef.long-type-1756088639377025124.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0275]: overflow evaluating the requirement `&mut tokio_tungstenite::WebSocketStream>: Send` [INFO] [stdout] --> examples/trades_subscription.rs:135:27 [INFO] [stdout] | [INFO] [stdout] 135 | let processing_task = tokio::spawn(async move { client.start_message_processing_loop().await }); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`trades_subscription`) [INFO] [stdout] note: required because it appears within the type `Next<'_, WebSocketStream>>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.31/src/stream/stream/next.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Next<'a, St: ?Sized> { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:203:75 [INFO] [stdout] | [INFO] [stdout] 203 | pub async fn receive_message(&self) -> Result { [INFO] [stdout] | ___________________________________________________________________________^ [INFO] [stdout] 204 | | let mut connection = self.connection.lock().await; [INFO] [stdout] 205 | | connection.receive().await [INFO] [stdout] 206 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:406:83 [INFO] [stdout] | [INFO] [stdout] 406 | pub async fn receive_and_process_message(&self) -> Result<(), WebSocketError> { [INFO] [stdout] | ___________________________________________________________________________________^ [INFO] [stdout] 407 | | let message = self.receive_message().await?; [INFO] [stdout] 408 | | [INFO] [stdout] 409 | | if let Some(handler) = &self.message_handler { [INFO] [stdout] ... | [INFO] [stdout] 413 | | Ok(()) [INFO] [stdout] 414 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:419:85 [INFO] [stdout] | [INFO] [stdout] 419 | pub async fn start_message_processing_loop(&self) -> Result<(), WebSocketError> { [INFO] [stdout] | _____________________________________________________________________________________^ [INFO] [stdout] 420 | | if self.message_handler.is_none() { [INFO] [stdout] 421 | | return Err(WebSocketError::InvalidMessage( [INFO] [stdout] 422 | | "No message handler set. Use set_message_handler() first.".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 442 | | Ok(()) [INFO] [stdout] 443 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` block [INFO] [stdout] --> examples/trades_subscription.rs:135:40 [INFO] [stdout] | [INFO] [stdout] 135 | let processing_task = tokio::spawn(async move { client.start_message_processing_loop().await }); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `tokio::spawn` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.47.1/src/task/spawn.rs:168:21 [INFO] [stdout] | [INFO] [stdout] 166 | pub fn spawn(future: F) -> JoinHandle [INFO] [stdout] | ----- required by a bound in this function [INFO] [stdout] 167 | where [INFO] [stdout] 168 | F: Future + Send + 'static, [INFO] [stdout] | ^^^^ required by this bound in `spawn` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/examples/trades_subscription-19039ae4f28a0fef.long-type-1756088639377025124.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0275]: overflow evaluating the requirement `&mut tokio_tungstenite::WebSocketStream>: Send` [INFO] [stdout] | [INFO] [stdout] = help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`expiration_price_subscription`) [INFO] [stdout] note: required because it appears within the type `Next<'_, WebSocketStream>>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.31/src/stream/stream/next.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Next<'a, St: ?Sized> { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:203:75 [INFO] [stdout] | [INFO] [stdout] 203 | pub async fn receive_message(&self) -> Result { [INFO] [stdout] | ___________________________________________________________________________^ [INFO] [stdout] 204 | | let mut connection = self.connection.lock().await; [INFO] [stdout] 205 | | connection.receive().await [INFO] [stdout] 206 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:406:83 [INFO] [stdout] | [INFO] [stdout] 406 | pub async fn receive_and_process_message(&self) -> Result<(), WebSocketError> { [INFO] [stdout] | ___________________________________________________________________________________^ [INFO] [stdout] 407 | | let message = self.receive_message().await?; [INFO] [stdout] 408 | | [INFO] [stdout] 409 | | if let Some(handler) = &self.message_handler { [INFO] [stdout] ... | [INFO] [stdout] 413 | | Ok(()) [INFO] [stdout] 414 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:419:85 [INFO] [stdout] | [INFO] [stdout] 419 | pub async fn start_message_processing_loop(&self) -> Result<(), WebSocketError> { [INFO] [stdout] | _____________________________________________________________________________________^ [INFO] [stdout] 420 | | if self.message_handler.is_none() { [INFO] [stdout] 421 | | return Err(WebSocketError::InvalidMessage( [INFO] [stdout] 422 | | "No message handler set. Use set_message_handler() first.".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 442 | | Ok(()) [INFO] [stdout] 443 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` block [INFO] [stdout] --> examples/expiration_price_subscription.rs:111:40 [INFO] [stdout] | [INFO] [stdout] 111 | let processing_task = tokio::spawn(async move { client.start_message_processing_loop().await }); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/examples/expiration_price_subscription-241ea625a7a49c0d.long-type-2964805585552621908.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0275`. [INFO] [stdout] [INFO] [stdout] error[E0275]: overflow evaluating the requirement `&mut tokio_tungstenite::WebSocketStream>: Send` [INFO] [stdout] --> examples/expiration_price_subscription.rs:111:27 [INFO] [stdout] | [INFO] [stdout] 111 | let processing_task = tokio::spawn(async move { client.start_message_processing_loop().await }); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`expiration_price_subscription`) [INFO] [stdout] note: required because it appears within the type `Next<'_, WebSocketStream>>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.31/src/stream/stream/next.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Next<'a, St: ?Sized> { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:203:75 [INFO] [stdout] | [INFO] [stdout] 203 | pub async fn receive_message(&self) -> Result { [INFO] [stdout] | ___________________________________________________________________________^ [INFO] [stdout] 204 | | let mut connection = self.connection.lock().await; [INFO] [stdout] 205 | | connection.receive().await [INFO] [stdout] 206 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:406:83 [INFO] [stdout] | [INFO] [stdout] 406 | pub async fn receive_and_process_message(&self) -> Result<(), WebSocketError> { [INFO] [stdout] | ___________________________________________________________________________________^ [INFO] [stdout] 407 | | let message = self.receive_message().await?; [INFO] [stdout] 408 | | [INFO] [stdout] 409 | | if let Some(handler) = &self.message_handler { [INFO] [stdout] ... | [INFO] [stdout] 413 | | Ok(()) [INFO] [stdout] 414 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:419:85 [INFO] [stdout] | [INFO] [stdout] 419 | pub async fn start_message_processing_loop(&self) -> Result<(), WebSocketError> { [INFO] [stdout] | _____________________________________________________________________________________^ [INFO] [stdout] 420 | | if self.message_handler.is_none() { [INFO] [stdout] 421 | | return Err(WebSocketError::InvalidMessage( [INFO] [stdout] 422 | | "No message handler set. Use set_message_handler() first.".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 442 | | Ok(()) [INFO] [stdout] 443 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` block [INFO] [stdout] --> examples/expiration_price_subscription.rs:111:40 [INFO] [stdout] | [INFO] [stdout] 111 | let processing_task = tokio::spawn(async move { client.start_message_processing_loop().await }); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `tokio::spawn` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.47.1/src/task/spawn.rs:168:21 [INFO] [stdout] | [INFO] [stdout] 166 | pub fn spawn(future: F) -> JoinHandle [INFO] [stdout] | ----- required by a bound in this function [INFO] [stdout] 167 | where [INFO] [stdout] 168 | F: Future + Send + 'static, [INFO] [stdout] | ^^^^ required by this bound in `spawn` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/examples/expiration_price_subscription-241ea625a7a49c0d.long-type-2964805585552621908.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `deribit-websocket` (example "expiration_price_subscription") due to 2 previous errors [INFO] [stdout] For more information about this error, try `rustc --explain E0275`. [INFO] [stdout] [INFO] [stderr] error: could not compile `deribit-websocket` (example "trades_subscription") due to 2 previous errors [INFO] [stdout] error[E0275]: overflow evaluating the requirement `&mut tokio_tungstenite::WebSocketStream>: Send` [INFO] [stdout] | [INFO] [stdout] = help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`mark_price_subscription`) [INFO] [stdout] note: required because it appears within the type `Next<'_, WebSocketStream>>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.31/src/stream/stream/next.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Next<'a, St: ?Sized> { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:203:75 [INFO] [stdout] | [INFO] [stdout] 203 | pub async fn receive_message(&self) -> Result { [INFO] [stdout] | ___________________________________________________________________________^ [INFO] [stdout] 204 | | let mut connection = self.connection.lock().await; [INFO] [stdout] 205 | | connection.receive().await [INFO] [stdout] 206 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:406:83 [INFO] [stdout] | [INFO] [stdout] 406 | pub async fn receive_and_process_message(&self) -> Result<(), WebSocketError> { [INFO] [stdout] | ___________________________________________________________________________________^ [INFO] [stdout] 407 | | let message = self.receive_message().await?; [INFO] [stdout] 408 | | [INFO] [stdout] 409 | | if let Some(handler) = &self.message_handler { [INFO] [stdout] ... | [INFO] [stdout] 413 | | Ok(()) [INFO] [stdout] 414 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:419:85 [INFO] [stdout] | [INFO] [stdout] 419 | pub async fn start_message_processing_loop(&self) -> Result<(), WebSocketError> { [INFO] [stdout] | _____________________________________________________________________________________^ [INFO] [stdout] 420 | | if self.message_handler.is_none() { [INFO] [stdout] 421 | | return Err(WebSocketError::InvalidMessage( [INFO] [stdout] 422 | | "No message handler set. Use set_message_handler() first.".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 442 | | Ok(()) [INFO] [stdout] 443 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` block [INFO] [stdout] --> examples/mark_price_subscription.rs:121:40 [INFO] [stdout] | [INFO] [stdout] 121 | let processing_task = tokio::spawn(async move { client.start_message_processing_loop().await }); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/examples/mark_price_subscription-3921babff4395113.long-type-17871943776317128016.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0275]: overflow evaluating the requirement `&mut tokio_tungstenite::WebSocketStream>: Send` [INFO] [stdout] --> examples/portfolio_subscription.rs:143:27 [INFO] [stdout] | [INFO] [stdout] 143 | let processing_task = tokio::spawn(async move { client.start_message_processing_loop().await }); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`portfolio_subscription`) [INFO] [stdout] note: required because it appears within the type `Next<'_, WebSocketStream>>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.31/src/stream/stream/next.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Next<'a, St: ?Sized> { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:203:75 [INFO] [stdout] | [INFO] [stdout] 203 | pub async fn receive_message(&self) -> Result { [INFO] [stdout] | ___________________________________________________________________________^ [INFO] [stdout] 204 | | let mut connection = self.connection.lock().await; [INFO] [stdout] 205 | | connection.receive().await [INFO] [stdout] 206 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:406:83 [INFO] [stdout] | [INFO] [stdout] 406 | pub async fn receive_and_process_message(&self) -> Result<(), WebSocketError> { [INFO] [stdout] | ___________________________________________________________________________________^ [INFO] [stdout] 407 | | let message = self.receive_message().await?; [INFO] [stdout] 408 | | [INFO] [stdout] 409 | | if let Some(handler) = &self.message_handler { [INFO] [stdout] ... | [INFO] [stdout] 413 | | Ok(()) [INFO] [stdout] 414 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:419:85 [INFO] [stdout] | [INFO] [stdout] 419 | pub async fn start_message_processing_loop(&self) -> Result<(), WebSocketError> { [INFO] [stdout] | _____________________________________________________________________________________^ [INFO] [stdout] 420 | | if self.message_handler.is_none() { [INFO] [stdout] 421 | | return Err(WebSocketError::InvalidMessage( [INFO] [stdout] 422 | | "No message handler set. Use set_message_handler() first.".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 442 | | Ok(()) [INFO] [stdout] 443 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` block [INFO] [stdout] --> examples/portfolio_subscription.rs:143:40 [INFO] [stdout] | [INFO] [stdout] 143 | let processing_task = tokio::spawn(async move { client.start_message_processing_loop().await }); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `tokio::spawn` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.47.1/src/task/spawn.rs:168:21 [INFO] [stdout] | [INFO] [stdout] 166 | pub fn spawn(future: F) -> JoinHandle [INFO] [stdout] | ----- required by a bound in this function [INFO] [stdout] 167 | where [INFO] [stdout] 168 | F: Future + Send + 'static, [INFO] [stdout] | ^^^^ required by this bound in `spawn` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/examples/portfolio_subscription-b7c416adde266aea.long-type-9211648160665150221.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0275]: overflow evaluating the requirement `&mut tokio_tungstenite::WebSocketStream>: Send` [INFO] [stdout] --> examples/mark_price_subscription.rs:121:27 [INFO] [stdout] | [INFO] [stdout] 121 | let processing_task = tokio::spawn(async move { client.start_message_processing_loop().await }); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`mark_price_subscription`) [INFO] [stdout] note: required because it appears within the type `Next<'_, WebSocketStream>>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.31/src/stream/stream/next.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Next<'a, St: ?Sized> { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:203:75 [INFO] [stdout] | [INFO] [stdout] 203 | pub async fn receive_message(&self) -> Result { [INFO] [stdout] | ___________________________________________________________________________^ [INFO] [stdout] 204 | | let mut connection = self.connection.lock().await; [INFO] [stdout] 205 | | connection.receive().await [INFO] [stdout] 206 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:406:83 [INFO] [stdout] | [INFO] [stdout] 406 | pub async fn receive_and_process_message(&self) -> Result<(), WebSocketError> { [INFO] [stdout] | ___________________________________________________________________________________^ [INFO] [stdout] 407 | | let message = self.receive_message().await?; [INFO] [stdout] 408 | | [INFO] [stdout] 409 | | if let Some(handler) = &self.message_handler { [INFO] [stdout] ... | [INFO] [stdout] 413 | | Ok(()) [INFO] [stdout] 414 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:419:85 [INFO] [stdout] | [INFO] [stdout] 419 | pub async fn start_message_processing_loop(&self) -> Result<(), WebSocketError> { [INFO] [stdout] | _____________________________________________________________________________________^ [INFO] [stdout] 420 | | if self.message_handler.is_none() { [INFO] [stdout] 421 | | return Err(WebSocketError::InvalidMessage( [INFO] [stdout] 422 | | "No message handler set. Use set_message_handler() first.".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 442 | | Ok(()) [INFO] [stdout] 443 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` block [INFO] [stdout] --> examples/mark_price_subscription.rs:121:40 [INFO] [stdout] | [INFO] [stdout] 121 | let processing_task = tokio::spawn(async move { client.start_message_processing_loop().await }); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `tokio::spawn` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.47.1/src/task/spawn.rs:168:21 [INFO] [stdout] | [INFO] [stdout] 166 | pub fn spawn(future: F) -> JoinHandle [INFO] [stdout] | ----- required by a bound in this function [INFO] [stdout] 167 | where [INFO] [stdout] 168 | F: Future + Send + 'static, [INFO] [stdout] | ^^^^ required by this bound in `spawn` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/examples/mark_price_subscription-3921babff4395113.long-type-17871943776317128016.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0275`. [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0275`. [INFO] [stdout] [INFO] [stderr] error: could not compile `deribit-websocket` (example "mark_price_subscription") due to 2 previous errors [INFO] [stderr] error: could not compile `deribit-websocket` (example "portfolio_subscription") due to 2 previous errors [INFO] [stdout] error[E0275]: overflow evaluating the requirement `&mut tokio_tungstenite::WebSocketStream>: Send` [INFO] [stdout] | [INFO] [stdout] = help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`user_trades_subscription`) [INFO] [stdout] note: required because it appears within the type `Next<'_, WebSocketStream>>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.31/src/stream/stream/next.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Next<'a, St: ?Sized> { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:203:75 [INFO] [stdout] | [INFO] [stdout] 203 | pub async fn receive_message(&self) -> Result { [INFO] [stdout] | ___________________________________________________________________________^ [INFO] [stdout] 204 | | let mut connection = self.connection.lock().await; [INFO] [stdout] 205 | | connection.receive().await [INFO] [stdout] 206 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:406:83 [INFO] [stdout] | [INFO] [stdout] 406 | pub async fn receive_and_process_message(&self) -> Result<(), WebSocketError> { [INFO] [stdout] | ___________________________________________________________________________________^ [INFO] [stdout] 407 | | let message = self.receive_message().await?; [INFO] [stdout] 408 | | [INFO] [stdout] 409 | | if let Some(handler) = &self.message_handler { [INFO] [stdout] ... | [INFO] [stdout] 413 | | Ok(()) [INFO] [stdout] 414 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:419:85 [INFO] [stdout] | [INFO] [stdout] 419 | pub async fn start_message_processing_loop(&self) -> Result<(), WebSocketError> { [INFO] [stdout] | _____________________________________________________________________________________^ [INFO] [stdout] 420 | | if self.message_handler.is_none() { [INFO] [stdout] 421 | | return Err(WebSocketError::InvalidMessage( [INFO] [stdout] 422 | | "No message handler set. Use set_message_handler() first.".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 442 | | Ok(()) [INFO] [stdout] 443 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` block [INFO] [stdout] --> examples/user_trades_subscription.rs:140:40 [INFO] [stdout] | [INFO] [stdout] 140 | let processing_task = tokio::spawn(async move { client.start_message_processing_loop().await }); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/examples/user_trades_subscription-061c8fad61a2f9aa.long-type-9883256631139358795.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0275]: overflow evaluating the requirement `&mut tokio_tungstenite::WebSocketStream>: Send` [INFO] [stdout] --> examples/user_trades_subscription.rs:140:27 [INFO] [stdout] | [INFO] [stdout] 140 | let processing_task = tokio::spawn(async move { client.start_message_processing_loop().await }); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`user_trades_subscription`) [INFO] [stdout] note: required because it appears within the type `Next<'_, WebSocketStream>>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.31/src/stream/stream/next.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Next<'a, St: ?Sized> { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:203:75 [INFO] [stdout] | [INFO] [stdout] 203 | pub async fn receive_message(&self) -> Result { [INFO] [stdout] | ___________________________________________________________________________^ [INFO] [stdout] 204 | | let mut connection = self.connection.lock().await; [INFO] [stdout] 205 | | connection.receive().await [INFO] [stdout] 206 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:406:83 [INFO] [stdout] | [INFO] [stdout] 406 | pub async fn receive_and_process_message(&self) -> Result<(), WebSocketError> { [INFO] [stdout] | ___________________________________________________________________________________^ [INFO] [stdout] 407 | | let message = self.receive_message().await?; [INFO] [stdout] 408 | | [INFO] [stdout] 409 | | if let Some(handler) = &self.message_handler { [INFO] [stdout] ... | [INFO] [stdout] 413 | | Ok(()) [INFO] [stdout] 414 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:419:85 [INFO] [stdout] | [INFO] [stdout] 419 | pub async fn start_message_processing_loop(&self) -> Result<(), WebSocketError> { [INFO] [stdout] | _____________________________________________________________________________________^ [INFO] [stdout] 420 | | if self.message_handler.is_none() { [INFO] [stdout] 421 | | return Err(WebSocketError::InvalidMessage( [INFO] [stdout] 422 | | "No message handler set. Use set_message_handler() first.".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 442 | | Ok(()) [INFO] [stdout] 443 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` block [INFO] [stdout] --> examples/user_trades_subscription.rs:140:40 [INFO] [stdout] | [INFO] [stdout] 140 | let processing_task = tokio::spawn(async move { client.start_message_processing_loop().await }); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `tokio::spawn` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.47.1/src/task/spawn.rs:168:21 [INFO] [stdout] | [INFO] [stdout] 166 | pub fn spawn(future: F) -> JoinHandle [INFO] [stdout] | ----- required by a bound in this function [INFO] [stdout] 167 | where [INFO] [stdout] 168 | F: Future + Send + 'static, [INFO] [stdout] | ^^^^ required by this bound in `spawn` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/examples/user_trades_subscription-061c8fad61a2f9aa.long-type-9883256631139358795.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0275`. [INFO] [stdout] [INFO] [stderr] error: could not compile `deribit-websocket` (example "user_trades_subscription") due to 2 previous errors [INFO] [stdout] error[E0275]: overflow evaluating the requirement `&mut tokio_tungstenite::WebSocketStream>: Send` [INFO] [stdout] | [INFO] [stdout] = help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`perpetual_subscription`) [INFO] [stdout] note: required because it appears within the type `Next<'_, WebSocketStream>>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.31/src/stream/stream/next.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Next<'a, St: ?Sized> { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:203:75 [INFO] [stdout] | [INFO] [stdout] 203 | pub async fn receive_message(&self) -> Result { [INFO] [stdout] | ___________________________________________________________________________^ [INFO] [stdout] 204 | | let mut connection = self.connection.lock().await; [INFO] [stdout] 205 | | connection.receive().await [INFO] [stdout] 206 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:406:83 [INFO] [stdout] | [INFO] [stdout] 406 | pub async fn receive_and_process_message(&self) -> Result<(), WebSocketError> { [INFO] [stdout] | ___________________________________________________________________________________^ [INFO] [stdout] 407 | | let message = self.receive_message().await?; [INFO] [stdout] 408 | | [INFO] [stdout] 409 | | if let Some(handler) = &self.message_handler { [INFO] [stdout] ... | [INFO] [stdout] 413 | | Ok(()) [INFO] [stdout] 414 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:419:85 [INFO] [stdout] | [INFO] [stdout] 419 | pub async fn start_message_processing_loop(&self) -> Result<(), WebSocketError> { [INFO] [stdout] | _____________________________________________________________________________________^ [INFO] [stdout] 420 | | if self.message_handler.is_none() { [INFO] [stdout] 421 | | return Err(WebSocketError::InvalidMessage( [INFO] [stdout] 422 | | "No message handler set. Use set_message_handler() first.".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 442 | | Ok(()) [INFO] [stdout] 443 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` block [INFO] [stdout] --> examples/perpetual_subscription.rs:117:40 [INFO] [stdout] | [INFO] [stdout] 117 | let processing_task = tokio::spawn(async move { client.start_message_processing_loop().await }); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/examples/perpetual_subscription-e59dc0382410fb4a.long-type-9025920873629909150.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0275]: overflow evaluating the requirement `&mut tokio_tungstenite::WebSocketStream>: Send` [INFO] [stdout] --> examples/perpetual_subscription.rs:117:27 [INFO] [stdout] | [INFO] [stdout] 117 | let processing_task = tokio::spawn(async move { client.start_message_processing_loop().await }); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`perpetual_subscription`) [INFO] [stdout] note: required because it appears within the type `Next<'_, WebSocketStream>>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.31/src/stream/stream/next.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Next<'a, St: ?Sized> { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:203:75 [INFO] [stdout] | [INFO] [stdout] 203 | pub async fn receive_message(&self) -> Result { [INFO] [stdout] | ___________________________________________________________________________^ [INFO] [stdout] 204 | | let mut connection = self.connection.lock().await; [INFO] [stdout] 205 | | connection.receive().await [INFO] [stdout] 206 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:406:83 [INFO] [stdout] | [INFO] [stdout] 406 | pub async fn receive_and_process_message(&self) -> Result<(), WebSocketError> { [INFO] [stdout] | ___________________________________________________________________________________^ [INFO] [stdout] 407 | | let message = self.receive_message().await?; [INFO] [stdout] 408 | | [INFO] [stdout] 409 | | if let Some(handler) = &self.message_handler { [INFO] [stdout] ... | [INFO] [stdout] 413 | | Ok(()) [INFO] [stdout] 414 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:419:85 [INFO] [stdout] | [INFO] [stdout] 419 | pub async fn start_message_processing_loop(&self) -> Result<(), WebSocketError> { [INFO] [stdout] | _____________________________________________________________________________________^ [INFO] [stdout] 420 | | if self.message_handler.is_none() { [INFO] [stdout] 421 | | return Err(WebSocketError::InvalidMessage( [INFO] [stdout] 422 | | "No message handler set. Use set_message_handler() first.".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 442 | | Ok(()) [INFO] [stdout] 443 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` block [INFO] [stdout] --> examples/perpetual_subscription.rs:117:40 [INFO] [stdout] | [INFO] [stdout] 117 | let processing_task = tokio::spawn(async move { client.start_message_processing_loop().await }); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `tokio::spawn` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.47.1/src/task/spawn.rs:168:21 [INFO] [stdout] | [INFO] [stdout] 166 | pub fn spawn(future: F) -> JoinHandle [INFO] [stdout] | ----- required by a bound in this function [INFO] [stdout] 167 | where [INFO] [stdout] 168 | F: Future + Send + 'static, [INFO] [stdout] | ^^^^ required by this bound in `spawn` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/examples/perpetual_subscription-e59dc0382410fb4a.long-type-9025920873629909150.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0275`. [INFO] [stdout] [INFO] [stdout] error[E0275]: overflow evaluating the requirement `&mut tokio_tungstenite::WebSocketStream>: Send` [INFO] [stdout] | [INFO] [stdout] = help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`price_index_subscription`) [INFO] [stdout] note: required because it appears within the type `Next<'_, WebSocketStream>>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.31/src/stream/stream/next.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Next<'a, St: ?Sized> { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:203:75 [INFO] [stdout] | [INFO] [stdout] 203 | pub async fn receive_message(&self) -> Result { [INFO] [stdout] | ___________________________________________________________________________^ [INFO] [stdout] 204 | | let mut connection = self.connection.lock().await; [INFO] [stdout] 205 | | connection.receive().await [INFO] [stdout] 206 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:406:83 [INFO] [stdout] | [INFO] [stdout] 406 | pub async fn receive_and_process_message(&self) -> Result<(), WebSocketError> { [INFO] [stdout] | ___________________________________________________________________________________^ [INFO] [stdout] 407 | | let message = self.receive_message().await?; [INFO] [stdout] 408 | | [INFO] [stdout] 409 | | if let Some(handler) = &self.message_handler { [INFO] [stdout] ... | [INFO] [stdout] 413 | | Ok(()) [INFO] [stdout] 414 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:419:85 [INFO] [stdout] | [INFO] [stdout] 419 | pub async fn start_message_processing_loop(&self) -> Result<(), WebSocketError> { [INFO] [stdout] | _____________________________________________________________________________________^ [INFO] [stdout] 420 | | if self.message_handler.is_none() { [INFO] [stdout] 421 | | return Err(WebSocketError::InvalidMessage( [INFO] [stdout] 422 | | "No message handler set. Use set_message_handler() first.".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 442 | | Ok(()) [INFO] [stdout] 443 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` block [INFO] [stdout] --> examples/price_index_subscription.rs:108:40 [INFO] [stdout] | [INFO] [stdout] 108 | let processing_task = tokio::spawn(async move { client.start_message_processing_loop().await }); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/examples/price_index_subscription-aad1178321627797.long-type-3886320138774484078.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `deribit-websocket` (example "perpetual_subscription") due to 2 previous errors [INFO] [stdout] error[E0275]: overflow evaluating the requirement `&mut tokio_tungstenite::WebSocketStream>: Send` [INFO] [stdout] --> examples/price_index_subscription.rs:108:27 [INFO] [stdout] | [INFO] [stdout] 108 | let processing_task = tokio::spawn(async move { client.start_message_processing_loop().await }); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`price_index_subscription`) [INFO] [stdout] note: required because it appears within the type `Next<'_, WebSocketStream>>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.31/src/stream/stream/next.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Next<'a, St: ?Sized> { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:203:75 [INFO] [stdout] | [INFO] [stdout] 203 | pub async fn receive_message(&self) -> Result { [INFO] [stdout] | ___________________________________________________________________________^ [INFO] [stdout] 204 | | let mut connection = self.connection.lock().await; [INFO] [stdout] 205 | | connection.receive().await [INFO] [stdout] 206 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:406:83 [INFO] [stdout] | [INFO] [stdout] 406 | pub async fn receive_and_process_message(&self) -> Result<(), WebSocketError> { [INFO] [stdout] | ___________________________________________________________________________________^ [INFO] [stdout] 407 | | let message = self.receive_message().await?; [INFO] [stdout] 408 | | [INFO] [stdout] 409 | | if let Some(handler) = &self.message_handler { [INFO] [stdout] ... | [INFO] [stdout] 413 | | Ok(()) [INFO] [stdout] 414 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:419:85 [INFO] [stdout] | [INFO] [stdout] 419 | pub async fn start_message_processing_loop(&self) -> Result<(), WebSocketError> { [INFO] [stdout] | _____________________________________________________________________________________^ [INFO] [stdout] 420 | | if self.message_handler.is_none() { [INFO] [stdout] 421 | | return Err(WebSocketError::InvalidMessage( [INFO] [stdout] 422 | | "No message handler set. Use set_message_handler() first.".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 442 | | Ok(()) [INFO] [stdout] 443 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` block [INFO] [stdout] --> examples/price_index_subscription.rs:108:40 [INFO] [stdout] | [INFO] [stdout] 108 | let processing_task = tokio::spawn(async move { client.start_message_processing_loop().await }); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `tokio::spawn` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.47.1/src/task/spawn.rs:168:21 [INFO] [stdout] | [INFO] [stdout] 166 | pub fn spawn(future: F) -> JoinHandle [INFO] [stdout] | ----- required by a bound in this function [INFO] [stdout] 167 | where [INFO] [stdout] 168 | F: Future + Send + 'static, [INFO] [stdout] | ^^^^ required by this bound in `spawn` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/examples/price_index_subscription-aad1178321627797.long-type-3886320138774484078.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0275`. [INFO] [stdout] [INFO] [stderr] error: could not compile `deribit-websocket` (example "price_index_subscription") due to 2 previous errors [INFO] [stdout] error[E0275]: overflow evaluating the requirement `&mut tokio_tungstenite::WebSocketStream>: Send` [INFO] [stdout] | [INFO] [stdout] = help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`advanced_subscriptions`) [INFO] [stdout] note: required because it appears within the type `Next<'_, WebSocketStream>>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.31/src/stream/stream/next.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Next<'a, St: ?Sized> { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:203:75 [INFO] [stdout] | [INFO] [stdout] 203 | pub async fn receive_message(&self) -> Result { [INFO] [stdout] | ___________________________________________________________________________^ [INFO] [stdout] 204 | | let mut connection = self.connection.lock().await; [INFO] [stdout] 205 | | connection.receive().await [INFO] [stdout] 206 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:406:83 [INFO] [stdout] | [INFO] [stdout] 406 | pub async fn receive_and_process_message(&self) -> Result<(), WebSocketError> { [INFO] [stdout] | ___________________________________________________________________________________^ [INFO] [stdout] 407 | | let message = self.receive_message().await?; [INFO] [stdout] 408 | | [INFO] [stdout] 409 | | if let Some(handler) = &self.message_handler { [INFO] [stdout] ... | [INFO] [stdout] 413 | | Ok(()) [INFO] [stdout] 414 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:419:85 [INFO] [stdout] | [INFO] [stdout] 419 | pub async fn start_message_processing_loop(&self) -> Result<(), WebSocketError> { [INFO] [stdout] | _____________________________________________________________________________________^ [INFO] [stdout] 420 | | if self.message_handler.is_none() { [INFO] [stdout] 421 | | return Err(WebSocketError::InvalidMessage( [INFO] [stdout] 422 | | "No message handler set. Use set_message_handler() first.".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 442 | | Ok(()) [INFO] [stdout] 443 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` block [INFO] [stdout] --> examples/advanced_subscriptions.rs:166:40 [INFO] [stdout] | [INFO] [stdout] 166 | let processing_task = tokio::spawn(async move { client.start_message_processing_loop().await }); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/examples/advanced_subscriptions-84781565d55c2f35.long-type-17920261303740528069.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0275]: overflow evaluating the requirement `&mut tokio_tungstenite::WebSocketStream>: Send` [INFO] [stdout] --> examples/advanced_subscriptions.rs:166:27 [INFO] [stdout] | [INFO] [stdout] 166 | let processing_task = tokio::spawn(async move { client.start_message_processing_loop().await }); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`advanced_subscriptions`) [INFO] [stdout] note: required because it appears within the type `Next<'_, WebSocketStream>>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.31/src/stream/stream/next.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Next<'a, St: ?Sized> { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:203:75 [INFO] [stdout] | [INFO] [stdout] 203 | pub async fn receive_message(&self) -> Result { [INFO] [stdout] | ___________________________________________________________________________^ [INFO] [stdout] 204 | | let mut connection = self.connection.lock().await; [INFO] [stdout] 205 | | connection.receive().await [INFO] [stdout] 206 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:406:83 [INFO] [stdout] | [INFO] [stdout] 406 | pub async fn receive_and_process_message(&self) -> Result<(), WebSocketError> { [INFO] [stdout] | ___________________________________________________________________________________^ [INFO] [stdout] 407 | | let message = self.receive_message().await?; [INFO] [stdout] 408 | | [INFO] [stdout] 409 | | if let Some(handler) = &self.message_handler { [INFO] [stdout] ... | [INFO] [stdout] 413 | | Ok(()) [INFO] [stdout] 414 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:419:85 [INFO] [stdout] | [INFO] [stdout] 419 | pub async fn start_message_processing_loop(&self) -> Result<(), WebSocketError> { [INFO] [stdout] | _____________________________________________________________________________________^ [INFO] [stdout] 420 | | if self.message_handler.is_none() { [INFO] [stdout] 421 | | return Err(WebSocketError::InvalidMessage( [INFO] [stdout] 422 | | "No message handler set. Use set_message_handler() first.".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 442 | | Ok(()) [INFO] [stdout] 443 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` block [INFO] [stdout] --> examples/advanced_subscriptions.rs:166:40 [INFO] [stdout] | [INFO] [stdout] 166 | let processing_task = tokio::spawn(async move { client.start_message_processing_loop().await }); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `tokio::spawn` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.47.1/src/task/spawn.rs:168:21 [INFO] [stdout] | [INFO] [stdout] 166 | pub fn spawn(future: F) -> JoinHandle [INFO] [stdout] | ----- required by a bound in this function [INFO] [stdout] 167 | where [INFO] [stdout] 168 | F: Future + Send + 'static, [INFO] [stdout] | ^^^^ required by this bound in `spawn` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/examples/advanced_subscriptions-84781565d55c2f35.long-type-17920261303740528069.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0275`. [INFO] [stdout] [INFO] [stderr] error: could not compile `deribit-websocket` (example "advanced_subscriptions") due to 2 previous errors [INFO] running `Command { std: "docker" "inspect" "080995115bfd6f606f9b521e12ddaf0c56a77d9351976deec3dd6b5a44944fe4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "080995115bfd6f606f9b521e12ddaf0c56a77d9351976deec3dd6b5a44944fe4", kill_on_drop: false }` [INFO] [stdout] 080995115bfd6f606f9b521e12ddaf0c56a77d9351976deec3dd6b5a44944fe4