pub struct RegisterHandle<T> { /* private fields */ }Expand description
This initializer adds a handle to the service context.
Implementations§
Source§impl<T> RegisterHandle<T>
impl<T> RegisterHandle<T>
Trait Implementations§
Source§impl<T: Send + Sync + 'static> ServiceInitializer for RegisterHandle<T>
impl<T: Send + Sync + 'static> ServiceInitializer for RegisterHandle<T>
Source§fn initialize<'life0, 'async_trait>(
&'life0 mut self,
context: ServiceInitializerContext,
) -> Pin<Box<dyn Future<Output = Result<(), ServiceInitializationError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn initialize<'life0, 'async_trait>(
&'life0 mut self,
context: ServiceInitializerContext,
) -> Pin<Box<dyn Future<Output = Result<(), ServiceInitializationError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Async initialization code for a service
Auto Trait Implementations§
impl<T> Freeze for RegisterHandle<T>where
T: Freeze,
impl<T> RefUnwindSafe for RegisterHandle<T>where
T: RefUnwindSafe,
impl<T> Send for RegisterHandle<T>where
T: Send,
impl<T> Sync for RegisterHandle<T>where
T: Sync,
impl<T> Unpin for RegisterHandle<T>where
T: Unpin,
impl<T> UnsafeUnpin for RegisterHandle<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for RegisterHandle<T>where
T: 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