Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Require 'static + Send + Sync for proxy callback info? #51

Open
Congyuwang opened this issue Jul 20, 2024 · 1 comment · May be fixed by #53
Open

Require 'static + Send + Sync for proxy callback info? #51

Congyuwang opened this issue Jul 20, 2024 · 1 comment · May be fixed by #53

Comments

@Congyuwang
Copy link

/// Struct describing the callback happening when a watched value in the dynamic store is changed.
pub struct SCDynamicStoreCallBackContext<T> {
/// The callback function that will be called when a watched value in the dynamic store is
/// changed.
pub callout: SCDynamicStoreCallBackT<T>,
/// The argument passed to each `callout` call. Can be used to keep state between
/// callbacks.
pub info: T,
}

@Congyuwang
Copy link
Author

Shouldn't we require T to be 'static + Send + Sync since it is used as &mut T in callback?

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 a pull request may close this issue.

1 participant