[−][src]Struct hierarchical_hash_wheel_timer::PeriodicClosureState
A timeout state for a periodic timer using a closure as the triggering action
Methods
impl<I> PeriodicClosureState<I>
[src]
pub fn new<F>(id: I, action: F) -> Self where
F: FnMut(I) -> TimerReturn<()> + Send + 'static,
[src]
F: FnMut(I) -> TimerReturn<()> + Send + 'static,
Produces a new instance of this state type from a unique id and the action to be executed every time it expires.
impl PeriodicClosureState<Uuid>
[src]
pub fn with_random_id<F>(action: F) -> Self where
F: FnMut(Uuid) -> TimerReturn<()> + Send + 'static,
[src]
F: FnMut(Uuid) -> TimerReturn<()> + Send + 'static,
Produces a new instance of this state type using a random unique id and the action to be executed every time it expires.
Uses Uuid::new_v4()
internally.
Trait Implementations
impl<I> Debug for PeriodicClosureState<I> where
I: Hash + Clone + Eq + Debug,
[src]
I: Hash + Clone + Eq + Debug,
impl<I> PeriodicState for PeriodicClosureState<I> where
I: Hash + Clone + Eq,
[src]
I: Hash + Clone + Eq,
Auto Trait Implementations
impl<I> !RefUnwindSafe for PeriodicClosureState<I>
impl<I> Send for PeriodicClosureState<I> where
I: Send,
I: Send,
impl<I> !Sync for PeriodicClosureState<I>
impl<I> Unpin for PeriodicClosureState<I> where
I: Unpin,
I: Unpin,
impl<I> !UnwindSafe for PeriodicClosureState<I>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,