Skip to content

error: the trait bound websocket::ws::Message is not satisfied #112

@euclio

Description

@euclio

Hello, perhaps I'm using the library incorrectly, but I cannot figure out how to use Client::recv_message properly. I'm getting the following error message:

error[E0277]: the trait bound `websocket::Message<'_>: websocket::ws::Message<'_, websocket::DataFrame>` is not satisfied
  --> tests/send.rs:21:35
   |
21 |     let message: Message = client.recv_message().unwrap();
   |                                   ^^^^^^^^^^^^ the trait `websocket::ws::Message<'_, websocket::DataFrame>` is not implemented for `websocket::Message<'_>`
   |
   = help: the following implementations were found:
             <websocket::Message<'a> as websocket::ws::Message<'b, &'b websocket::Message<'a>>>

I can't find an example of this method being used in the codebase.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions