Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no function or associated item named unmarshal found for struct #8

Closed
lattice0 opened this issue Jul 19, 2021 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@lattice0
Copy link
Contributor

I'm trying to figure out what is happening here. Compiling the project on its folder has no errors, but compiling my project when it depends on retina, gives this:

error[E0599]: no function or associated item named `unmarshal` found for struct `Header` in the current scope
   --> src/external/retina/src/client/rtp.rs:193:49
    |
193 |             let h = match rtcp::header::Header::unmarshal(&data) {
    |                                                 ^^^^^^^^^ function or associated item not found in `Header`
    |
    = help: items from traits can only be used if the trait is in scope
    = note: the following trait is implemented but not in scope; perhaps add a `use` for it:
            `use webrtc_util::marshal::Unmarshal;`

error[E0599]: no function or associated item named `unmarshal` found for struct `rtcp::sender_report::SenderReport` in the current scope
   --> src/external/retina/src/client/rtp.rs:211:66
    |
211 |                     let pkt = rtcp::sender_report::SenderReport::unmarshal(&pkt)
    |                                                                  ^^^^^^^^^ function or associated item not found in `rtcp::sender_report::SenderReport`
    |
    = help: items from traits can only be used if the trait is in scope
    = note: the following trait is implemented but not in scope; perhaps add a `use` for it:
            `use webrtc_util::marshal::Unmarshal;`

error: aborting due to 2 previous errors; 1 warning emitted

have you had something like this? I have no idea about what is happening

@scottlamb
Copy link
Owner

The rtcp crate had an accidental semvar breakage between version 0.2.2 and 0.2.3. The current version of retina only works with the former. So the workaround is to specify rtcp 0.2.2 in your lockfile via something like cargo update --package rtcp --precise 0.2.2.

I'll make sure the next retina release I prepare works without any lockfile manipulation.

@scottlamb scottlamb added the bug Something isn't working label Jul 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants