cheako

Untitled

Sep 27th, 2020
1,033
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. error[E0599]: no method named `forward` found for struct `tokio::sync::broadcast::Receiver<std::result::Result<warp::ws::Message, warp::Error>>` in the current scope
  2.    --> srv/src/server.rs:125:52
  3.     |
  4. 125 | ...                   result = (*sender).forward(ws_tx) => if let Err(e) = result {
  5.     |                                          ^^^^^^^ method not found in `tokio::sync::broadcast::Receiver<std::result::Result<warp::ws::Message, warp::Error>>`
  6.     |
  7.    ::: /home/srv_websuite/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/sync/broadcast.rs:191:1
  8.     |
  9. 191 | pub struct Receiver<T> {
  10.     | ----------------------
  11.     | |
  12.     | doesn't satisfy `_: futures::StreamExt`
  13.     | doesn't satisfy `_: warp::Stream`
  14.     |
  15.     = note: the method `forward` exists but the following trait bounds were not satisfied:
  16.             `tokio::sync::broadcast::Receiver<std::result::Result<warp::ws::Message, warp::Error>>: warp::Stream`
  17.             which is required by `tokio::sync::broadcast::Receiver<std::result::Result<warp::ws::Message, warp::Error>>: futures::StreamExt`
  18.             `&tokio::sync::broadcast::Receiver<std::result::Result<warp::ws::Message, warp::Error>>: warp::Stream`
  19.             which is required by `&tokio::sync::broadcast::Receiver<std::result::Result<warp::ws::Message, warp::Error>>: futures::StreamExt`
  20.             `&mut tokio::sync::broadcast::Receiver<std::result::Result<warp::ws::Message, warp::Error>>: warp::Stream`
  21.             which is required by `&mut tokio::sync::broadcast::Receiver<std::result::Result<warp::ws::Message, warp::Error>>: futures::StreamExt`
  22.  
  23. error[E0599]: no method named `poll` found for struct `std::pin::Pin<&mut _>` in the current scope
  24.    --> srv/src/server.rs:123:29
  25.     |
  26. 123 | / ...                   tokio::select! {
  27. 124 | | ...                       _ = close_rx.recv() => { break }
  28. 125 | | ...                       result = (*sender).forward(ws_tx) => if let Err(e) = result {
  29. 126 | | ...                           eprintln!("mpsc to websocket send error: {}", e);
  30. 127 | | ...                       }
  31. 128 | | ...                   }
  32.     | |_______________________^ method not found in `std::pin::Pin<&mut _>`
  33.     |
  34.     = note: `fut` is a function, perhaps you wish to call it
  35.     = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
  36.  
  37. error[E0599]: no method named `poll` found for struct `std::pin::Pin<_>` in the current scope
  38.    --> srv/src/server.rs:123:29
  39.     |
  40. 123 | / ...                   tokio::select! {
  41. 124 | | ...                       _ = close_rx.recv() => { break }
  42. 125 | | ...                       result = (*sender).forward(ws_tx) => if let Err(e) = result {
  43. 126 | | ...                           eprintln!("mpsc to websocket send error: {}", e);
  44. 127 | | ...                       }
  45. 128 | | ...                   }
  46.     | |_______________________^ method not found in `std::pin::Pin<_>`
  47.     |
  48.     = note: `fut` is a function, perhaps you wish to call it
  49.     = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
  50.  
RAW Paste Data