pub trait TimerTimeoutCollection<ITEM: PartialEq + Eq + Display + Debug> {
// Required methods
fn new() -> Self;
fn push(&mut self, item: ITEM);
fn into_option(self) -> Option<Self>
where Self: Sized;
}Expand description
A trait for the generalization of the collection type which is used to collect the timeout values i.e ticket IDs.
Required Methods§
Sourcefn into_option(self) -> Option<Self>where
Self: Sized,
fn into_option(self) -> Option<Self>where
Self: Sized,
Wraps the instance into Option. If collection is empty a
Option::None should be returned.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl<ITEM: PartialEq + Eq + Display + Debug> TimerTimeoutCollection<ITEM> for ()
A dummy implementation when nothing is returned. Unused at the moment.
impl<ITEM: PartialEq + Eq + Display + Debug> TimerTimeoutCollection<ITEM> for ()
A dummy implementation when nothing is returned. Unused at the moment.
Source§impl<ITEM: PartialEq + Eq + Display + Debug> TimerTimeoutCollection<ITEM> for Vec<ITEM>
An implementation for the Vec.
impl<ITEM: PartialEq + Eq + Display + Debug> TimerTimeoutCollection<ITEM> for Vec<ITEM>
An implementation for the Vec.