pub enum AlertMessage {
Heartbeat,
}Variants§
Heartbeat
Send a heartbeat to the backend API Returns ws_url in response for ConfigManager to connect WebSocket
Trait Implementations§
Source§impl Clone for AlertMessage
impl Clone for AlertMessage
Source§fn clone(&self) -> AlertMessage
fn clone(&self) -> AlertMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AlertMessage
impl Debug for AlertMessage
Source§impl FactoryLifecycleHooks<(), AlertMessage> for AlertsFactoryHooks
impl FactoryLifecycleHooks<(), AlertMessage> for AlertsFactoryHooks
Source§fn on_factory_started<'life0, 'async_trait>(
&'life0 self,
_factory: ActorRef<FactoryMessage<(), AlertMessage>>,
) -> Pin<Box<dyn Future<Output = Result<(), ActorProcessingErr>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn on_factory_started<'life0, 'async_trait>(
&'life0 self,
_factory: ActorRef<FactoryMessage<(), AlertMessage>>,
) -> Pin<Box<dyn Future<Output = Result<(), ActorProcessingErr>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Called when the factory has completed it’s startup routine but
PRIOR to processing any messages. Just before this point, the factory
is ready to accept and process requests and all workers are started. Read more
Source§fn on_factory_stopped<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), ActorProcessingErr>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn on_factory_stopped<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), ActorProcessingErr>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Called when the factory has completed it’s shutdown routine but
PRIOR to fully exiting and notifying any relevant supervisors. Just prior
to this call the factory has processed its last message and will process
no more messages. Read more
Source§fn on_factory_draining<'life0, 'async_trait>(
&'life0 self,
_factory: ActorRef<FactoryMessage<(), AlertMessage>>,
) -> Pin<Box<dyn Future<Output = Result<(), ActorProcessingErr>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn on_factory_draining<'life0, 'async_trait>(
&'life0 self,
_factory: ActorRef<FactoryMessage<(), AlertMessage>>,
) -> Pin<Box<dyn Future<Output = Result<(), ActorProcessingErr>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Called when the factory has received a signal to drain requests and exit after
draining has completed. Read more
Auto Trait Implementations§
impl Freeze for AlertMessage
impl RefUnwindSafe for AlertMessage
impl Send for AlertMessage
impl Sync for AlertMessage
impl Unpin for AlertMessage
impl UnwindSafe for AlertMessage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Message for T
impl<T> Message for T
Source§fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
Convert a BoxedMessage to this concrete type
Source§fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
Convert this message to a BoxedMessage