Trait RegisterInPrefixGroup

Source
pub trait RegisterInPrefixGroup<P, H>
where P: for<'async_trait> Debug + for<'async_trait> Clone + for<'async_trait> From<PathBuf> + for<'async_trait> AsRef<Path> + for<'async_trait> Send + for<'async_trait> Sync + 'async_trait, H: CrateHandleInterface<P> + Send + Sync + Debug + Clone,
{ type Error; // Required method fn register_in_prefix_crate<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, prefix_crate: &'life1 H, new_crate: &'life2 H, ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>> where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: 'async_trait; }
Expand description

This trait says: “Given a prefix group’s facade crate, register a new internal crate in it.” Typically means:

  1. Add a [dependencies] new_crate = { path = ... } to the facade crate’s Cargo.toml.
  2. Possibly add pub use new_crate::*; or a mod statement in facade crate’s code.

Required Associated Types§

Required Methods§

Source

fn register_in_prefix_crate<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, prefix_crate: &'life1 H, new_crate: &'life2 H, ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: 'async_trait,

Implementors§

Source§

impl<P, H> RegisterInPrefixGroup<P, H> for Workspace<P, H>
where P: for<'async_trait> Debug + for<'async_trait> Clone + for<'async_trait> From<PathBuf> + for<'async_trait> AsRef<Path> + for<'async_trait> Send + for<'async_trait> Sync + 'async_trait, H: CrateHandleInterface<P> + Send + Sync + Debug + Clone,