Skip to content

Change Handler trait to receive message by value#219

Merged
s1341 merged 1 commit intofrida:mainfrom
7sDream:handler-msg-by-value
Oct 8, 2025
Merged

Change Handler trait to receive message by value#219
s1341 merged 1 commit intofrida:mainfrom
7sDream:handler-msg-by-value

Conversation

@7sDream
Copy link
Copy Markdown
Contributor

@7sDream 7sDream commented Sep 21, 2025

As discussed in #217, there’s no reason the message handler should only receive a reference to the message. Passing the value directly is more idiomatic in Rust and helps reduce memory allocation within the handler.

Although the Handler trait is public and changing the signature of its method constitutes a breaking change, the modification—both for us and for users—is straightforward. I believe it’s worth pursuing.

BREAKING CHANGE: the Handler trait is public and for user to impl, change signature of trait method is a BREAKING CHANGE. But the change (both for us and for user) is really sample, according to the discusion in frida#217, it is worth trying.
@s1341 s1341 merged commit f39dcc5 into frida:main Oct 8, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants