usecrate::kernel::BrokerEvent;usestd::time::Duration;/// Wrapper for a platform-specific channel receiver.
pubtraitReceiver: Send {/// Messages sent to the channel can be retrieved using this function.
/// The call is blocking.
fnreceive(&self)-> BrokerEvent;/// Messages sent to the channel can be retrieved using this function.
/// The call is blocking for a given duration.
////// # Arguments
////// * `timeout` - The maximum time to block the caller and wait for a message.
///fnreceive_timeout(&self, timeout: Duration)->Option<BrokerEvent>;}/// Boxed wrapper for a platform-specific channel receiver.
pubtypeBoxedReceiver=Box<dyn Receiver +Send>;