-
From what I can gather, references and pointers can't be used as arguments or return values. If, for example, I were to open a database connection in Rust, and the handle struct contained private, non-serializable fields, it becomes pretty difficult to pass it around between Flutter -> Rust invocations. The only workaround I'm aware of is converting pointers to Is there a clean way to keep the native state connected to an object that passes through the bridge? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Maybe |
Beta Was this translation helpful? Give feedback.
Maybe
opaque
, orlazy_static
, orpool