Skip to main content

CompletionHandler

Trait CompletionHandler 

Source
pub trait CompletionHandler<Marker>:
    Clone
    + Send
    + Sync
    + 'static {
    // Required method
    fn into_handler_fn(self) -> CompletionHandlerFn;
}

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<F, Fut> CompletionHandler<CompletionRawMarker> for F
where F: Fn(CompleteRequest) -> Fut + Clone + Send + Sync + 'static, Fut: Future<Output = McpResult<CompleteResult>> + Send + 'static,