pub trait SubscriptionCallback<T, Args>: Send + 'staticwhere
T: Message,{
// Required method
fn into_callback(self) -> AnySubscriptionCallback<T>;
}
Expand description
A trait for allowed callbacks for subscriptions.
See AnySubscriptionCallback
for a list of possible callback signatures.
Required Methods§
Sourcefn into_callback(self) -> AnySubscriptionCallback<T>
fn into_callback(self) -> AnySubscriptionCallback<T>
Converts the callback into an enum.
User code never needs to call this function.