error[E0053]: method `new` has an incompatible type for trait
--> C:\Users\mmits\.cargo\git\checkouts\scap-23044669792c3f4e\48c2276\src\capturer\engine\win\mod.rs:39:25
|
39 | fn new(flag_values: Self::Flags) -> Result<Self, Self::Error> {
| ^^^^^^^^^^^ expected `windows_capture::capture::Context<FlagStruct>`, found `FlagStruct`
|
= note: expected signature `fn(windows_capture::capture::Context<FlagStruct>) -> Result<_, _>`
found signature `fn(FlagStruct) -> Result<_, _>`
help: change the parameter type to match the trait
|
39 | fn new(flag_values: windows_capture::capture::Context<FlagStruct>) -> Result<Self, Self::Error> {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error[E0599]: no method named `as_raw_nopadding_buffer` found for struct `FrameBuffer` in the current scope
--> C:\Users\mmits\.cargo\git\checkouts\scap-23044669792c3f4e\48c2276\src\capturer\engine\win\mod.rs:65:61
|
65 | let raw_frame_buffer = match cropped_buffer.as_raw_nopadding_buffer() {
| ^^^^^^^^^^^^^^^^^^^^^^^
|
help: there is a method `as_nopadding_buffer` with a similar name
|
65 | let raw_frame_buffer = match cropped_buffer.as_nopadding_buffer() {
| ~~~~~~~~~~~~~~~~~~~
Some errors have detailed explanations: E0053, E0599.
For more information about an error, try `rustc --explain E0053`.
error: could not compile `scap` (lib) due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
Errors when building in Windows: