pub struct ModuleOptions<O, M> { /* private fields */ }Expand description
Typed runtime options token for configurable modules.
This is intended to be provided via ConfigurableModuleBuilder / DynamicModuleBuilder
(it panics if requested without an override).
Implementations§
Source§impl<O, M> ModuleOptions<O, M>
impl<O, M> ModuleOptions<O, M>
Trait Implementations§
Source§impl<O, M> Deref for ModuleOptions<O, M>
impl<O, M> Deref for ModuleOptions<O, M>
Source§impl<O, M> Injectable for ModuleOptions<O, M>
impl<O, M> Injectable for ModuleOptions<O, M>
fn construct(_registry: &ProviderRegistry) -> Arc<Self>
Source§fn scope() -> ProviderScope
fn scope() -> ProviderScope
Provider scope used when the module registers this type.
fn on_module_init<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn on_module_destroy<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn on_application_bootstrap<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn on_application_shutdown<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl<O, M> Freeze for ModuleOptions<O, M>where
O: Freeze,
impl<O, M> RefUnwindSafe for ModuleOptions<O, M>where
O: RefUnwindSafe,
impl<O, M> Send for ModuleOptions<O, M>where
O: Send,
impl<O, M> Sync for ModuleOptions<O, M>where
O: Sync,
impl<O, M> Unpin for ModuleOptions<O, M>where
O: Unpin,
impl<O, M> UnsafeUnpin for ModuleOptions<O, M>where
O: UnsafeUnpin,
impl<O, M> UnwindSafe for ModuleOptions<O, M>where
O: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more