[INFO] fetching crate deribit-websocket 0.1.1... [INFO] checking deribit-websocket-0.1.1 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] extracting crate deribit-websocket 0.1.1 into /workspace/builds/worker-6-tc1/source [INFO] removed /workspace/builds/worker-6-tc1/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-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate deribit-websocket 0.1.1 on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded deribit-base v0.2.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c9d8628bfc1d519ae0bd4d5d027306f9abd337936a63d15a004177a77832033e [INFO] running `Command { std: "docker" "start" "-a" "c9d8628bfc1d519ae0bd4d5d027306f9abd337936a63d15a004177a77832033e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c9d8628bfc1d519ae0bd4d5d027306f9abd337936a63d15a004177a77832033e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c9d8628bfc1d519ae0bd4d5d027306f9abd337936a63d15a004177a77832033e", kill_on_drop: false }` [INFO] [stdout] c9d8628bfc1d519ae0bd4d5d027306f9abd337936a63d15a004177a77832033e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7c56c5bca989b6a5590854522a1ca2f4c720d5324e7d79eca38e444f22d79f39 [INFO] running `Command { std: "docker" "start" "-a" "7c56c5bca989b6a5590854522a1ca2f4c720d5324e7d79eca38e444f22d79f39", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Checking cfg-if v1.0.1 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Compiling dunce v1.0.5 [INFO] [stderr] Compiling fs_extra v1.3.0 [INFO] [stderr] Checking pin-project-lite v0.2.16 [INFO] [stderr] Checking once_cell v1.21.3 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Checking zeroize v1.8.1 [INFO] [stderr] Checking log v0.4.27 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling aws-lc-rs v1.13.3 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Checking litemap v0.8.0 [INFO] [stderr] Checking memchr v2.7.5 [INFO] [stderr] Checking writeable v0.6.1 [INFO] [stderr] Checking rustls-pki-types v1.12.0 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Checking slab v0.4.11 [INFO] [stderr] Compiling rustls v0.23.31 [INFO] [stderr] Checking itoa v1.0.15 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking untrusted v0.9.0 [INFO] [stderr] Checking bytes v1.10.1 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Checking tracing-core v0.1.34 [INFO] [stderr] Compiling thiserror v2.0.15 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking regex-syntax v0.6.29 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling serde_json v1.0.141 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking cpufeatures v0.2.17 [INFO] [stderr] Checking overload v0.1.1 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking nu-ansi-term v0.46.0 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking webpki-roots v1.0.2 [INFO] [stderr] Checking thread_local v1.1.9 [INFO] [stderr] Checking data-encoding v2.9.0 [INFO] [stderr] Checking utf8_iter v1.0.4 [INFO] [stderr] Checking ryu v1.0.20 [INFO] [stderr] Checking utf-8 v0.7.6 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Checking iana-time-zone v0.1.63 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Checking webpki-roots v0.26.11 [INFO] [stderr] Checking base64 v0.22.1 [INFO] [stderr] Checking sdd v3.0.10 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Checking signal-hook-registry v1.4.6 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Checking socket2 v0.6.0 [INFO] [stderr] Checking scc v2.3.4 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Checking http v1.3.1 [INFO] [stderr] Compiling jobserver v0.1.33 [INFO] [stderr] Compiling cc v1.2.30 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Compiling cmake v0.1.54 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking matchers v0.1.0 [INFO] [stderr] Compiling aws-lc-sys v0.30.0 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking rand v0.9.2 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling thiserror-impl v2.0.15 [INFO] [stderr] Compiling serial_test_derive v3.2.0 [INFO] [stderr] Checking tokio v1.47.1 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking yoke v0.8.0 [INFO] [stderr] Checking tracing-subscriber v0.3.19 [INFO] [stderr] Checking zerovec v0.11.4 [INFO] [stderr] Checking zerotrie v0.2.2 [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] Checking icu_locale_core v2.0.0 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking serial_test v3.2.0 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Checking chrono v0.4.41 [INFO] [stderr] Checking rustls-webpki v0.103.4 [INFO] [stderr] Checking deribit-base v0.2.0 [INFO] [stderr] Checking tokio-rustls v0.26.2 [INFO] [stderr] Checking tungstenite v0.27.0 [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 (`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/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().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-4964415407814498794.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/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().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-4964415407814498794.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 (`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/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().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-13508093701063228361.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] [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] --> 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/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().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-13508093701063228361.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 "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 (`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/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().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-10047388791382019402.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/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().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-10047388791382019402.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 "mark_price_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/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().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-7734534793124174020.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/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().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-7734534793124174020.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 "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 (`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/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().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-984848830245161086.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/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().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-15673056361926194827.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/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/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().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-984848830245161086.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/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/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().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-15673056361926194827.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] [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/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().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-6432761486620928912.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] 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/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().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-6432761486620928912.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 (`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/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().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-1221773261093985685.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/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().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-1221773261093985685.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 "portfolio_subscription") due to 2 previous errors [INFO] [stderr] error: could not compile `deribit-websocket` (example "price_index_subscription") due to 2 previous errors [INFO] [stderr] error: could not compile `deribit-websocket` (example "callback_example") 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/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().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-5646165268948663412.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/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().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-5646165268948663412.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 (`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/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().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-13361403983718473430.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 (`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/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().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-14345015676356749451.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/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().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-14345015676356749451.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] [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/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().await { [INFO] [stdout] 69 | | Some(Ok(Message::Text(text))) => Ok(text.to_string()), [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/connection/ws_connection.rs:66:71 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn receive(&mut self) -> Result { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 67 | | if let Some(stream) = &mut self.stream { [INFO] [stdout] 68 | | match stream.next().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-13361403983718473430.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_orders_subscription") due to 2 previous errors [INFO] running `Command { std: "docker" "inspect" "7c56c5bca989b6a5590854522a1ca2f4c720d5324e7d79eca38e444f22d79f39", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7c56c5bca989b6a5590854522a1ca2f4c720d5324e7d79eca38e444f22d79f39", kill_on_drop: false }` [INFO] [stdout] 7c56c5bca989b6a5590854522a1ca2f4c720d5324e7d79eca38e444f22d79f39