#[repr(i32)]pub enum MessagingDomain {
Refill = 1,
Ventilation = 3,
Feed = 8,
Heating = 9,
Balling = 11,
Monitors = 12,
Watchdog = 13,
Unknown = -1,
}Expand description
Identifies the addressee of the message
Variants§
Refill = 1
refill control
Ventilation = 3
ventilation control
Feed = 8
feed control
Heating = 9
heating control
Balling = 11
Balling dosing control
Monitors = 12
monitors
Watchdog = 13
watchdog communication
Unknown = -1
in case the numeric value in the message could not be assigned to one of the above
Implementations§
Source§impl MessagingDomain
impl MessagingDomain
Sourcepub fn is_domain_thread_executed(
&self,
execution_config: &ExecutionConfig,
) -> bool
pub fn is_domain_thread_executed( &self, execution_config: &ExecutionConfig, ) -> bool
Checks if the thread corresponding to a specific messaging domain is active.
This method consults the provided ExecutionConfig to determine if the thread
responsible for handling a given MessagingDomain was started at application launch.
This is useful for preventing attempts to send messages to threads that are not
running, which would otherwise result in channel errors.
§Arguments
execution_config- A reference to the application’s runtime execution configuration, which holds the active status of each thread.
§Returns
Returns true if the thread for the domain is configured as active, and false
if the thread is inactive or if the domain is MessagingDomain::Unknown.
Trait Implementations§
Source§impl Clone for MessagingDomain
impl Clone for MessagingDomain
Source§fn clone(&self) -> MessagingDomain
fn clone(&self) -> MessagingDomain
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MessagingDomain
impl Debug for MessagingDomain
Source§impl Display for MessagingDomain
impl Display for MessagingDomain
Source§fn fmt(&self, f: &mut Formatter<'_>) -> Result
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Formats the MessagingDomain enum into its human-readable string representation.
This implementation allows MessagingDomain variants to be displayed directly
using macros like println! or format!, returning the name of the domain.
§Arguments
f- A mutable reference to the formatter, as required by thefmt::Displaytrait.
§Returns
A fmt::Result indicating whether the formatting operation was successful.