Trait RegistryHooks

Source
pub trait RegistryHooks: Send + Sync {
    // Provided method
    fn on_manifest_uploaded<'life0, 'life1, 'async_trait>(
        &'life0 self,
        manifest_reference: &'life1 ManifestReference,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
}
Expand description

A registry hook

Hooks are used by the registry to notify about changes made by external clients.

The unit type () implements RegistryHooks, silently discarding all notifications.

Provided Methods§

Source

fn on_manifest_uploaded<'life0, 'life1, 'async_trait>( &'life0 self, manifest_reference: &'life1 ManifestReference, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Notify about an uploaded manifest.

Implementations on Foreign Types§

Source§

impl RegistryHooks for ()

Implementors§