pub struct Throttle(/* private fields */);
Expand description
Wrapper type to control how many PaverEvent
s are unblocked. Dropping the Throttle
will
permanently release all subsequent PaverEvent
s.
Implementations§
Source§impl Throttle
impl Throttle
pub fn emit_next_paver_event(&self, expected_event: &PaverEvent)
pub fn emit_next_paver_events(&self, expected_events: &[PaverEvent])
Auto Trait Implementations§
impl Freeze for Throttle
impl !RefUnwindSafe for Throttle
impl Send for Throttle
impl Sync for Throttle
impl Unpin for Throttle
impl !UnwindSafe for Throttle
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