pub struct DataLoggerChannels {
pub tx_data_logger_to_signal_handler: AquaSender<bool>,
pub rx_data_logger_from_signal_handler: AquaReceiver<InternalCommand>,
}Expand description
Struct acts as a central hub for communication channels used by the DataLogger. It’s a way to bundle together all the necessary mpsc (Multi-Producer, Single-Consumer) channel endpoints that the data logger needs to interact with other parts of your application.
Fields§
§tx_data_logger_to_signal_handler: AquaSender<bool>Sender part of the channel for communication to the signal handler
rx_data_logger_from_signal_handler: AquaReceiver<InternalCommand>Receiver part of the channel for communication from the signal handler
Implementations§
Source§impl DataLoggerChannels
impl DataLoggerChannels
Sourcepub fn send_to_signal_handler(
&mut self,
ack: bool,
) -> Result<(), AquaChannelError>
pub fn send_to_signal_handler( &mut self, ack: bool, ) -> Result<(), AquaChannelError>
Sends an acknowledgment to the signal handler.
This wrapper function sends a boolean acknowledgment and increments the
associated debug counter if the debug_channels feature is enabled.
Trait Implementations§
Source§impl AcknowledgeSignalHandlerTrait for DataLoggerChannels
impl AcknowledgeSignalHandlerTrait for DataLoggerChannels
Source§fn send_true_to_signal_handler(&mut self) -> Result<(), AquaChannelError>
fn send_true_to_signal_handler(&mut self) -> Result<(), AquaChannelError>
Source§fn location(&self) -> String
fn location(&self) -> String
Returns the source location (module path) for logging purposes. Read more
Source§fn acknowledge_signal_handler(&mut self)
fn acknowledge_signal_handler(&mut self)
Acknowledges the
SignalHandler by sending a confirmation message. Read moreAuto Trait Implementations§
impl Freeze for DataLoggerChannels
impl RefUnwindSafe for DataLoggerChannels
impl Send for DataLoggerChannels
impl !Sync for DataLoggerChannels
impl Unpin for DataLoggerChannels
impl UnwindSafe for DataLoggerChannels
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