pub struct CustomComponents<B, C>where
B: ComponentDefinition<Message = !> + ActorRaw + 'static,
C: ComponentDefinition<Message = DispatchEnvelope> + ActorRaw + 'static + Dispatcher,{ /* private fields */ }Expand description
A wrapper for custom system components
This struct already has SystemComponents implemented for it, saving you the work.
Trait Implementations§
Source§impl<B, C> SystemComponents for CustomComponents<B, C>where
B: ActorRaw<Message = !> + 'static + ComponentDefinition,
C: ComponentDefinition<Message = DispatchEnvelope> + ActorRaw + 'static + Dispatcher,
impl<B, C> SystemComponents for CustomComponents<B, C>where
B: ActorRaw<Message = !> + 'static + ComponentDefinition,
C: ComponentDefinition<Message = DispatchEnvelope> + ActorRaw + 'static + Dispatcher,
Source§fn deadletter_ref(&self) -> ActorRef<!>
fn deadletter_ref(&self) -> ActorRef<!>
Return a reference to this deadletter box
Source§fn dispatcher_ref(&self) -> ActorRefStrong<DispatchEnvelope>
fn dispatcher_ref(&self) -> ActorRefStrong<DispatchEnvelope>
Return a reference to this dispatcher
Source§fn system_path(&self) -> SystemPath
fn system_path(&self) -> SystemPath
Return a system path for this dispatcher
Source§fn start(&self, system: &KompactSystem)
fn start(&self, system: &KompactSystem)
Start all the system components
Source§fn stop(&self, system: &KompactSystem)
fn stop(&self, system: &KompactSystem)
Stop all the system components
Source§fn stop_notify<'a>(
&'a self,
system: &'a KompactSystem,
) -> Pin<Box<dyn Future<Output = Result<(), SystemComponentsShutdownError>> + Send + 'a>>
fn stop_notify<'a>( &'a self, system: &'a KompactSystem, ) -> Pin<Box<dyn Future<Output = Result<(), SystemComponentsShutdownError>> + Send + 'a>>
Stop all the system components and complete once shutdown has finished
Source§fn kill(&self, system: &KompactSystem)
fn kill(&self, system: &KompactSystem)
Stop all the system components as fast as possible, no graceful shutdown
Auto Trait Implementations§
impl<B, C> Freeze for CustomComponents<B, C>
impl<B, C> !RefUnwindSafe for CustomComponents<B, C>
impl<B, C> Send for CustomComponents<B, C>
impl<B, C> Sync for CustomComponents<B, C>
impl<B, C> Unpin for CustomComponents<B, C>
impl<B, C> UnsafeUnpin for CustomComponents<B, C>
impl<B, C> !UnwindSafe for CustomComponents<B, C>
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