pub struct TimeoutSet<T> { /* private fields */ }
Implementations§
Source§impl<T> TimeoutSet<T>
impl<T> TimeoutSet<T>
pub fn new() -> Self
pub fn add(&mut self, time: u64, val: T)
Sourcepub fn get_timeout_values(&self, time: u64) -> LinkedList<&T>
pub fn get_timeout_values(&self, time: u64) -> LinkedList<&T>
only get the timeout value list
Sourcepub fn timeout(&mut self, time: u64) -> LinkedList<T>
pub fn timeout(&mut self, time: u64) -> LinkedList<T>
remove timeout value and return the value list
pub fn clear(&mut self)
pub fn len(&self) -> usize
pub fn item_size(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for TimeoutSet<T>
impl<T> RefUnwindSafe for TimeoutSet<T>where
T: RefUnwindSafe,
impl<T> Send for TimeoutSet<T>where
T: Send,
impl<T> Sync for TimeoutSet<T>where
T: Sync,
impl<T> Unpin for TimeoutSet<T>
impl<T> UnwindSafe for TimeoutSet<T>where
T: RefUnwindSafe,
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