pub struct TimeoutManager<K>{ /* private fields */ }Expand description
Processes incoming Operations and modifies the [TimeoutLedger]
through a polling loop.
Implementations§
Source§impl<K> TimeoutManager<K>
impl<K> TimeoutManager<K>
pub fn new( signal_queue: SignalQueue<K>, topic: impl Into<<K::Message as RexMessage>::Topic>, ) -> Self
pub fn with_tick_rate(self, tick_rate: Duration) -> Self
pub fn init_inner(&self) -> UnboundedSender<Notification<K::Message>>
pub fn init_inner_with_handle( &self, join_set: &mut JoinSet<()>, ) -> UnboundedSender<Notification<K::Message>>
Trait Implementations§
Source§impl<K> NotificationProcessor<<K as Rex>::Message> for TimeoutManager<K>
impl<K> NotificationProcessor<<K as Rex>::Message> for TimeoutManager<K>
fn init( &mut self, join_set: &mut JoinSet<()>, ) -> UnboundedSender<Notification<K::Message>>
fn get_topics(&self) -> &[<K::Message as RexMessage>::Topic]
Auto Trait Implementations§
impl<K> Freeze for TimeoutManager<K>
impl<K> !RefUnwindSafe for TimeoutManager<K>
impl<K> Send for TimeoutManager<K>
impl<K> Sync for TimeoutManager<K>
impl<K> Unpin for TimeoutManager<K>
impl<K> !UnwindSafe for TimeoutManager<K>
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