Skip to main content

AsyncMethod

Type Alias AsyncMethod 

pub type AsyncMethod<'a> = Arc<dyn Fn(Id<'a>, Params<'a>, ConnectionId, usize) -> Pin<Box<dyn Future<Output = MethodResponse> + Send + 'a>> + Sync + Send>;
Available on crate feature server-core only.
Expand description

Similar to SyncMethod, but represents an asynchronous handler.

Aliased Type§

pub struct AsyncMethod<'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