Closed 107295472 closed 1 week ago
Hi, could you please check your ResMsg
type? For example, if it is not of lifetime static, then it will not work, because stream items needs to live arbitrarily long.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ResMsg<'a> {
pub percentage: f32,
pub count: i32,
pub message: &'a str,
pub code: i32,
}
Happy to see it is solved (closed)!
this error originates in the macro
$crate::frb_generated_stream_sink
which comes from the expansion of the macroflutter_rust_bridge::frb_generated_boilerplate
(in Nightly builds, run with -Z macro-backtrace for more info)