Skip to main content

ExitPlanModeHandler

Trait ExitPlanModeHandler 

Source
pub trait ExitPlanModeHandler:
    Send
    + Sync
    + 'static {
    // Required method
    fn handle<'life0, 'async_trait>(
        &'life0 self,
        session_id: SessionId,
        data: ExitPlanModeData,
    ) -> Pin<Box<dyn Future<Output = ExitPlanModeResult> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Handler for exit_plan_mode.requested events. When unset, requestExitPlanMode: false goes on the wire.

Required Methods§

Source

fn handle<'life0, 'async_trait>( &'life0 self, session_id: SessionId, data: ExitPlanModeData, ) -> Pin<Box<dyn Future<Output = ExitPlanModeResult> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Decide whether to leave plan mode.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§