pub struct DequeOnce { /* private fields */ }Expand description
This queue mode removes all entries from the queue that have timed out.
The further behaviour is defined by the type of the deque.
Implementations§
Trait Implementations§
Source§impl Ord for DequeOnce
impl Ord for DequeOnce
Source§impl OrderedTimerDequeMode for DequeOnce
impl OrderedTimerDequeMode for DequeOnce
Source§const IS_ONCE: bool = true
const IS_ONCE: bool = true
A type of operation. If the item deques once, then this value should be
true. Otherwise, it is periodic.Source§fn get_absolut_timeout(&self) -> AbsoluteTime
fn get_absolut_timeout(&self) -> AbsoluteTime
Returns the
absolute timeout for the instance of the deque.Source§fn validate_time(&self, cmp: AbsoluteTime) -> TimerResult<()>
fn validate_time(&self, cmp: AbsoluteTime) -> TimerResult<()>
Checks the current instance against the provided
cmp AbsoluteTime.
It is expected that the current instance’s timeout value is actual and
haven’t outlive the cmp already. if it does the error:
TimerErrorType::Expired should be returned. Or any other error
if it is required.Source§fn postpone(&mut self, posp_time: RelativeTime) -> TimerResult<()>
fn postpone(&mut self, posp_time: RelativeTime) -> TimerResult<()>
Postpones the time by the relative offset
post_time. May return error
(if required) if the absolut timeout value overflows. Read moreSource§fn advance_timeout(&mut self)
fn advance_timeout(&mut self)
Updates the timeout when the deque works in periodic mode. By fedault
it does nothing.
Source§impl PartialOrd for DequeOnce
impl PartialOrd for DequeOnce
impl Copy for DequeOnce
impl Eq for DequeOnce
Auto Trait Implementations§
impl Freeze for DequeOnce
impl RefUnwindSafe for DequeOnce
impl Send for DequeOnce
impl Sync for DequeOnce
impl Unpin for DequeOnce
impl UnwindSafe for DequeOnce
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