Skip to main content

SubscriptionMethod

Type Alias SubscriptionMethod 

pub type SubscriptionMethod<'a> = Arc<dyn Fn(Id<'_>, Params<'_>, MethodSink, SubscriptionState<'_>) -> Pin<Box<dyn Future<Output = MethodResponse> + Send + 'a>> + Sync + Send>;
Expand description

Method callback for subscriptions.

Aliased Type§

pub struct SubscriptionMethod<'a> { /* private fields */ }

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 16 bytes