pub trait CleanupSelf: Send + Sync {
    // Required method
    fn cleanup_self<'life0, 'async_trait>(
        self: Box<Self>,
        publisher_scope_id: ScopeId,
        data_and_subscribers: &'life0 mut Map<dyn Any + Send + Sync>
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Cleanup resource from self scope

Required Methods§

source

fn cleanup_self<'life0, 'async_trait>( self: Box<Self>, publisher_scope_id: ScopeId, data_and_subscribers: &'life0 mut Map<dyn Any + Send + Sync> ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Cleanup the resource from the self scope

Implementors§