pub struct Throttle<C, T, F> { /* private fields */ }Expand description
Rate-limits broadcasted updates from a Handle or Cache
before forwarding them to a callback.
Configure the rate with Frequency. The actor type must implement Throttled<F>
to convert the actor value into the callback argument type F.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<C, T, F> Freeze for Throttle<C, T, F>
impl<C, T, F> !RefUnwindSafe for Throttle<C, T, F>
impl<C, T, F> Send for Throttle<C, T, F>
impl<C, T, F> Sync for Throttle<C, T, F>
impl<C, T, F> Unpin for Throttle<C, T, F>
impl<C, T, F> UnsafeUnpin for Throttle<C, T, F>where
C: UnsafeUnpin,
T: UnsafeUnpin,
impl<C, T, F> !UnwindSafe for Throttle<C, T, F>
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