pub struct TimerDequeueConsumer<R: PartialEq + Eq + Debug + Display + Send> { /* private fields */ }Expand description
Defines the type of the queue. This type of the queue consumes the instance for which the timer is set. The item must be Send and can be used with, for example, std::sync::Arc. This is convinient when it is required to store the instance in the timer and retrive it when the timeout happens. It would allow to avoid looking for the instance in the lists.
§Generics
R - an instance which should be stored on the timer dequeue. The instance
must implement PartialEq, Eq, fmt::Debug, fmt::Display, Send.
Trait Implementations§
Source§impl<R> Display for TimerDequeueConsumer<R>
impl<R> Display for TimerDequeueConsumer<R>
Source§impl<R: PartialEq + Eq + Display + Debug + Send> Ord for TimerDequeueConsumer<R>
impl<R: PartialEq + Eq + Display + Debug + Send> Ord for TimerDequeueConsumer<R>
Source§impl<R> OrderedTimerDequeIntrf for TimerDequeueConsumer<R>
impl<R> OrderedTimerDequeIntrf for TimerDequeueConsumer<R>
Source§fn wrap(
target: Self::Target,
abs_time_sec: i64,
abs_time_nsec: i64,
) -> TimerResult<(Self, Self::Ticket)>
fn wrap( target: Self::Target, abs_time_sec: i64, abs_time_nsec: i64, ) -> TimerResult<(Self, Self::Ticket)>
Wraps the input and initializes the timer time. Read more
Source§fn get_timeout_absolute(&self) -> TimerExpMode
fn get_timeout_absolute(&self) -> TimerExpMode
Should return the absolute time and the timer mode.
Source§impl<R: PartialEq + Eq + Display + Debug + Send> PartialOrd for TimerDequeueConsumer<R>
impl<R: PartialEq + Eq + Display + Debug + Send> PartialOrd for TimerDequeueConsumer<R>
impl<R: PartialEq + Eq + Debug + Display + Send> Eq for TimerDequeueConsumer<R>
Auto Trait Implementations§
impl<R> Freeze for TimerDequeueConsumer<R>where
R: Freeze,
impl<R> RefUnwindSafe for TimerDequeueConsumer<R>where
R: RefUnwindSafe,
impl<R> Send for TimerDequeueConsumer<R>
impl<R> Sync for TimerDequeueConsumer<R>where
R: Sync,
impl<R> Unpin for TimerDequeueConsumer<R>where
R: Unpin,
impl<R> UnwindSafe for TimerDequeueConsumer<R>where
R: UnwindSafe,
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