pub(crate) trait State:
    Send
    + Debug
    + Serialize
    + Deserialize {
    // Required methods
    fn next<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 mut self,
        ddl_ctx: &'life1 DdlContext,
        ctx: &'life2 mut DropDatabaseContext,
    ) -> Pin<Box<dyn Future<Output = Result<(Box<dyn State>, Status)>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn as_any(&self) -> &dyn Any;
    // Provided method
    fn recover(&mut self, _ddl_ctx: &DdlContext) -> Result<()> { ... }
}Required Methods§
Sourcefn next<'life0, 'life1, 'life2, 'async_trait>(
    &'life0 mut self,
    ddl_ctx: &'life1 DdlContext,
    ctx: &'life2 mut DropDatabaseContext,
) -> Pin<Box<dyn Future<Output = Result<(Box<dyn State>, Status)>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
 
fn next<'life0, 'life1, 'life2, 'async_trait>(
    &'life0 mut self,
    ddl_ctx: &'life1 DdlContext,
    ctx: &'life2 mut DropDatabaseContext,
) -> Pin<Box<dyn Future<Output = Result<(Box<dyn State>, Status)>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
Provided Methods§
Sourcefn recover(&mut self, _ddl_ctx: &DdlContext) -> Result<()>
 
fn recover(&mut self, _ddl_ctx: &DdlContext) -> Result<()>
The hook is called during the recovery.