pub struct SoftwareTimer {
pub id: u64,
pub expires: u64,
pub handler: Weak<dyn TimerHandler>,
pub context: usize,
pub active: bool,
}Expand description
Software timer structure
Fields§
§id: u64§expires: u64§handler: Weak<dyn TimerHandler>§context: usize§active: boolTrait Implementations§
Source§impl Ord for SoftwareTimer
impl Ord for SoftwareTimer
Source§impl PartialEq for SoftwareTimer
impl PartialEq for SoftwareTimer
Source§impl PartialOrd for SoftwareTimer
impl PartialOrd for SoftwareTimer
impl Eq for SoftwareTimer
Auto Trait Implementations§
impl Freeze for SoftwareTimer
impl !RefUnwindSafe for SoftwareTimer
impl Send for SoftwareTimer
impl Sync for SoftwareTimer
impl Unpin for SoftwareTimer
impl !UnwindSafe for SoftwareTimer
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Comparable<K> for Qwhere
Q: Ord + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Comparable<K> for Qwhere
Q: Ord + ?Sized,
K: Borrow<Q> + ?Sized,
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.