Skip to content

DroppableDisposedException error encountered when using RustOpaque and Struct in 2.0 #1778

Closed Answered by fzyzcjy
OfficialBoyfriend asked this question in Q&A
Discussion options

You must be logged in to vote

Ok I see: It is not a bug, and just add #[frb(opaque)] struct Mqtt { ... }. (Otherwise, as can be seen from the generated dart code, frb automatically thinks Mqtt is a translatable struct, while the AtomicBool is an owned opaque.)

Feel free to ask questions if you find any problems!

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@OfficialBoyfriend
Comment options

@fzyzcjy
Comment options

@fzyzcjy
Comment options

Answer selected by OfficialBoyfriend
@OfficialBoyfriend
Comment options

@fzyzcjy
Comment options

@OfficialBoyfriend
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants