pub struct TimerDequeueSignalTicket<SIG: TimerDequeueSignal + Debug + Display + Eq + PartialEq> { /* private fields */ }Expand description
Defines the type of the dequeue. This type of the dequeue is sending notification when
the timeout event happens. The signal will be sent using SIG.
§Arguments
SIG - is an instance which provides the signaling and ID. It must implement:
TimerDequeueSignal, fmt::Debug, fmt::Display, Eq, PartialEq.
§Example
ⓘ
let mut time_list =
OrderedTimerDeque
::<TimerDequeueSignalTicket<TestSigStruct>>
::new("test_label".into(), 4, false).unwrap();Implementations§
Source§impl<SIG: TimerDequeueSignal + Debug + Display + Eq + PartialEq> TimerDequeueSignalTicket<SIG>
impl<SIG: TimerDequeueSignal + Debug + Display + Eq + PartialEq> TimerDequeueSignalTicket<SIG>
pub fn new( sig_hnd: SIG, abs_time_sec: i64, abs_time_nsec: i64, ) -> TimerResult<Self>
Trait Implementations§
Source§impl<SIG: Debug + TimerDequeueSignal + Debug + Display + Eq + PartialEq> Debug for TimerDequeueSignalTicket<SIG>
impl<SIG: Debug + TimerDequeueSignal + Debug + Display + Eq + PartialEq> Debug for TimerDequeueSignalTicket<SIG>
Source§impl<SIG: TimerDequeueSignal + Debug + Display + Eq + PartialEq> Display for TimerDequeueSignalTicket<SIG>
impl<SIG: TimerDequeueSignal + Debug + Display + Eq + PartialEq> Display for TimerDequeueSignalTicket<SIG>
Source§impl<SIG: TimerDequeueSignal + Debug + Display + Eq + PartialEq> Ord for TimerDequeueSignalTicket<SIG>
impl<SIG: TimerDequeueSignal + Debug + Display + Eq + PartialEq> Ord for TimerDequeueSignalTicket<SIG>
Source§impl<SIG: TimerDequeueSignal + Debug + Display + Eq + PartialEq> OrderedTimerDequeIntrf for TimerDequeueSignalTicket<SIG>
impl<SIG: TimerDequeueSignal + Debug + Display + Eq + PartialEq> OrderedTimerDequeIntrf for TimerDequeueSignalTicket<SIG>
Source§type Target = SIG
type Target = SIG
A timer item for the queue which is passed as argument. If noting is
provided the
NoTarget can be used.Source§type Ticket = NoTicket
type Ticket = NoTicket
A timer queue identification in the queue which may be retuened.
If nothing is retuned the
NoTicket can be returned.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<SIG: TimerDequeueSignal + Debug + Display + Eq + PartialEq> PartialEq for TimerDequeueSignalTicket<SIG>
impl<SIG: TimerDequeueSignal + Debug + Display + Eq + PartialEq> PartialEq for TimerDequeueSignalTicket<SIG>
Source§impl<SIG: TimerDequeueSignal + Debug + Display + Eq + PartialEq> PartialOrd for TimerDequeueSignalTicket<SIG>
impl<SIG: TimerDequeueSignal + Debug + Display + Eq + PartialEq> PartialOrd for TimerDequeueSignalTicket<SIG>
impl<SIG: TimerDequeueSignal + Debug + Display + Eq + PartialEq> Eq for TimerDequeueSignalTicket<SIG>
Auto Trait Implementations§
impl<SIG> Freeze for TimerDequeueSignalTicket<SIG>where
SIG: Freeze,
impl<SIG> RefUnwindSafe for TimerDequeueSignalTicket<SIG>where
SIG: RefUnwindSafe,
impl<SIG> Send for TimerDequeueSignalTicket<SIG>where
SIG: Send,
impl<SIG> Sync for TimerDequeueSignalTicket<SIG>where
SIG: Sync,
impl<SIG> Unpin for TimerDequeueSignalTicket<SIG>where
SIG: Unpin,
impl<SIG> UnwindSafe for TimerDequeueSignalTicket<SIG>where
SIG: 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