pub enum Timer<PI> {
Swarm(Timer<PI>),
Gossip(Timer),
}
Expand description
A timer to be registered for a particular topic.
This should be treated as an opaque value by the implementer and, once emitted, simply returned
to the protocol through InEvent::TimerExpired
.
Variants§
Trait Implementations§
impl<PI: Eq> Eq for Timer<PI>
impl<PI> StructuralPartialEq for Timer<PI>
Auto Trait Implementations§
impl<PI> Freeze for Timer<PI>where
PI: Freeze,
impl<PI> RefUnwindSafe for Timer<PI>where
PI: RefUnwindSafe,
impl<PI> Send for Timer<PI>where
PI: Send,
impl<PI> Sync for Timer<PI>where
PI: Sync,
impl<PI> Unpin for Timer<PI>where
PI: Unpin,
impl<PI> UnwindSafe for Timer<PI>where
PI: UnwindSafe,
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.