Struct open_coroutine_timer::TimerEntry
source · pub struct TimerEntry<T> { /* private fields */ }
Implementations§
source§impl<T> TimerEntry<T>
impl<T> TimerEntry<T>
pub fn new(time: u64) -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn get_time(&self) -> u64
pub fn pop_front(&mut self) -> Option<T>
pub fn push_back(&mut self, t: T)
pub fn remove(&mut self, t: &T) -> Option<T>where T: Ord,
pub fn iter_mut(&mut self) -> IterMut<'_, T>
pub fn iter(&self) -> Iter<'_, T>
Trait Implementations§
source§impl<T: Debug> Debug for TimerEntry<T>
impl<T: Debug> Debug for TimerEntry<T>
source§impl<T: PartialEq> PartialEq<TimerEntry<T>> for TimerEntry<T>
impl<T: PartialEq> PartialEq<TimerEntry<T>> for TimerEntry<T>
source§fn eq(&self, other: &TimerEntry<T>) -> bool
fn eq(&self, other: &TimerEntry<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<T: Eq> Eq for TimerEntry<T>
impl<T> StructuralEq for TimerEntry<T>
impl<T> StructuralPartialEq for TimerEntry<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for TimerEntry<T>where T: RefUnwindSafe,
impl<T> Send for TimerEntry<T>where T: Send,
impl<T> Sync for TimerEntry<T>where T: Sync,
impl<T> Unpin for TimerEntry<T>where T: Unpin,
impl<T> UnwindSafe for TimerEntry<T>where T: 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